Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > dd <- as.Date(c("2013-01-01", "2013-02-01", "2013-03-01"))
- > class(dd)
- [1] "Date"
- > unlist(dd)
- [1] "2013-01-01" "2013-02-01" "2013-03-01"
- > list(dd)
- [[1]]
- [1] "2013-01-01" "2013-02-01" "2013-03-01"
- > unlist(list(dd))
- [1] 15706 15737 15765
- > dd <- list(dd, dd)
- > (d <- do.call("c", dd))
- [1] "2013-01-01" "2013-02-01" "2013-03-01" "2013-01-01" "2013-02-01" "2013-03-01"
- > class(d) # proof that class is still Date
- [1] "Date"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement