I´m new to R ... maybe you can help me with this. When I import my dataset ba_data from Excel into R, the columns STARTED and LASTDATA show values that don´t exist in my excel sheet. R reads those columns as characters, but what is shown in the table in R doesn´t even make sense and doesn´t look like the numbers from excel. In excel they are shown as dates: y/m/d /h/min/sec. I tried to convert them into dates with the following code. If I run the code, everything turns into NA.
#I used this to import my datafile
ba_data <- read_excel(choose.files(), na = "-9")
#tried to convert STARTED and LASTDATA to date
ba_data$STARTED <- anytime::anydate(ba_data$STARTED)
ba_data$LASTDATA <- anytime::anydate(ba_data$LASTDATA)