I have the below nested list of dates. I would need to unlist and then to get unique list of dates starting from the earliest date to the latest date.
> str(datetemp)
List of 3
$ FCX : Date[1:5747], format: "1995-07-10" "1995-07-11" "1995-07-12" "1995-07-13" ...
$ MAT : Date[1:9164], format: "1982-01-04" "1982-01-05" "1982-01-06" "1982-01-07" ...
$ MSFT: Date[1:8104], format: "1986-03-13" "1986-03-14" "1986-03-17" "1986-03-18" ...
The below strip the date class and return a list of numeric.
datetemp <- sort(unique(unlist(datetemp)))
I googled and read that unlist will strip the date class and return as numeric and some examples show do.call on a list of dates.
I am new to R and would appreciate if anyone could show me how I can apply do.call to nested list to get the required output.
Thank you.