4
I’m having trouble extracting the week number of the month from a specific date.
Example:
hoje = Sys.Date()
print(hoje)
[1] "2019-02-11"
In the example of the date above, hoje
would be the 2nd week of the month.
I know that:
wday() #extrai o dia da semana.
mday() #extrai o dia do mês.
month() #extrai o mês.
But how can I use the R
to extract from hoje
the week of the month?
It worked perfectly. I had confused the amount of weeks in the month but I’ve corrected the question.
– Izak Mandrak