when I import from GoogleSheets one of the variables comes as a list. This is a sample:
> dataset$my_date[1:4]
[[1]]
[1] "2019-06-25 UTC"
[[2]]
[1] "2019-06-25 UTC"
[[3]]
[1] "2019-06-25 UTC"
[[4]]
[1] "2019-06-25 UTC"
But when I try to convert this list to date, it returns me:
> as.Date(dataset$my_date[1:4])
Error in as.Date.default(dataset$my_date[1:4]) :
do not know how to convert 'dataset$my_date[1:4]' to class “Date”
Is there a way to set this variable as vector when reading with read_sheet() function?