Hi
I read an excel file using readxl read_xlsx and the first column of the spreadhseet is a text data
e.g. "01/01/2022"
The class of the column created in the dataframe is character :-
Date entry created
"character"
and the values are as expected
Date entry created
1 43913
2 43929
3 43923
but when I try the as.date function to convert the column it keeps throwing an error
data[1] <- as.Date(data[1],origin="1899-01-01")
do not know how to convert 'data[1]' to class “Date”
What daft thing am I doing wrong