Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Get WEEK from the date in R Language [duplicate]

$
0
0

This question already has an answer here:

I am trying to understand and executing R code. I am new in R and have to run one R script in my system, which is written by one of my X-colleague.

I am trying to get WEEK from the date, but getting below mentioned Error.

*Script:-

a<- b%>% dplyr::mutate(Week=format(Date, '%U'))%>%

*Error:- Error in format.default(Date, "%U") : invalid 'trim' argument

*Input:- Date 26/1/2018


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>