Skip to content
Prev 386864 / 398502 Next

Converting "day of year" to "year", "month" and "day"

Hello,

My code didn't produce only 6 rows, it displayed only 6 rows. But all 
rows now have a date column.

As for the first question,

df2 <- df1[c("SWS", "date")]


selects the columns with those names. I didn't rewrite the original df1, 
but if you want to, assign to df1, without creating df2.

Hope this helps,

Rui Barradas

?s 15:12 de 17/01/21, Jibrin Alhassan escreveu: