Hi,
I have a long list of dates that i want to parse, they are in a dataframe (the_dates
). I've loaded them into R (from a sqlite db) just fine, however, if i do str(the_dates)
i get:
'data.frame': 3968 obs. of 1 variable:
somehow R treats this as a single variable, which is why i am having trouble converting into Date format - i found a workaround:
as.Date(the_dates[1:3968,], "%B %d, %Y")
This works, but is obviously not optimal because I have to lookup the length manually (length(the_dates)
returns 1
) -- any ideas what i am doing wrong?
Thanks!