Find day of year with the lubridate package in R

前端 未结 1 609
情话喂你
情话喂你 2021-01-17 08:22

I\'m looking to find the day of year for a POSIXct class object with lubridate. For example, 12-9-2015 is day 343.

It\'s easy to find the day of the week or month w

相关标签:
1条回答
  • 2021-01-17 09:00

    The correct function is yday, as in

    lubridate::yday(Sys.time())
    
    0 讨论(0)
提交回复
热议问题