Let\'s say that I have a date in R and it\'s formatted as follows.
date 2012-02-01 2012-02-01 2012-02-02
Is there any way in R to
form comment of JStrahl format(as.Date(df$date),"%w"), we get number of current day : as.numeric(format(as.Date("2016-05-09"),"%w"))
format(as.Date(df$date),"%w")
as.numeric(format(as.Date("2016-05-09"),"%w"))