I am new to R. Please give me the idiot explanation to my question please.
I added my data which is a .CSV file from excel into R. Everything is going smoothly except when i try to change the date column from character to date, it will be showing N/A all through in the date column.
daily_activity <- daily_activity %>%
mutate(date = as_date(date, format = "%d-%m-%y"))
daily_activity_sleep_day <- merge(daily_activity, sleep_day, by=c("id", "date"))
glimpse(daily_activity_sleep_day)
daily_activity <- daily_activity %>%
mutate(date = as_date(date, format = "%d-%m-%y"))
id date totalsteps totaldistance trackerdistance loggedactivitiesdistance
1 1503960366 NA 13162 8.5 8.5 0
2 1503960366 NA 10735 6.97 6.97 0
3 1503960366 NA 10460 6.74 6.74 0
4 1503960366 NA 9762 6.28 6.28 0
5 1503960366 NA 12669 8.16 8.16 0
6 1503960366 NA 9705 6.48 6.48 0