text

cedwards

·

date processing

·

Plain Text

·

Total Size: 269 B

·

·

Created: 1 year ago

·

Edited: 1 year ago

test=c("2017-12-30", "2017-12-29", "2018-01-01", "2018-01-01", "2017-12-31", "2017-12-31") jdate=as.POSIXlt(test,format="%Y-%m-%d")$yday #get julian date year=gsub("-.*","",dat$date) #get year

For getting julian date. Turns out it's much easier than I remember.

0 bits

284 views

Are you sure you want to delete?