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