[R] [R-pkgs] listcompr: list comprehension for R

2021-01-16 Thread Patrick Roocks
Dear R users, I am happy to announce the first version of listcompr which is on CRAN now. listcompr is a "syntactic sugar" approach to generate lists, vectors and data frames with list comprehension. Some examples are shown on the readme page on the github repository: https://github.com/patr

Re: [R] Converting "day of year" to "year", "month" and "day"

2021-01-16 Thread peter dalgaard
Something like this? > as.Date(ISOdate(1998,1,1))+(1:100)-1 [1] "1998-01-01" "1998-01-02" "1998-01-03" "1998-01-04" "1998-01-05" [6] "1998-01-06" "1998-01-07" "1998-01-08" "1998-01-09" "1998-01-10" [11] "1998-01-11" "1998-01-12" "1998-01-13" "1998-01-14" "1998-01-15" [16] "1998-01-16" "1998-