This should be easy but I'm losing my mind here.
I used read.csv to read an excel .csv file. I can see that when I run class on the column it is currently read as a character type. I need R to instead read it as a date type.
I've tried using as.Date, as.Date.character, and tried lubridate's functions, and nothing has worked. Each time I try I get an error that says: "charToDate(x): character string is not in a standard unambiguous format" Or the object I try populating the value to comes back blank. I've read several websites and questions posted on stackoverflow, and none of them work. I think it is because most questions get answered when the string is not directly from a .csv file (I can get it to work if I manually type it into R Studio, but that defeats the point of my question).
I tried going back into excel and manually changing the cells to a different date format but because it is .csv, it forces it back into the "3/18/2023" format.
I'm sure others have tried converting a date to character from a .csv file. How?