Hi I was wondering if someone could help me figure out how to convert a column in a data frame that is a factor into a Date (%y/%m/%d)
str(full_data_1)
'data.frame': 36 obs. of 5 variables:
$ id : chr "123A" "123A" "123A" "123A" ...
$ Date : Date, format: NA NA ...
$ usage : num 10 12 40 20 11 20 30 20 16 15 ...
$ treatment: num 0 0 0 0 0 0 0 0 0 0 ...
$ Gender : Factor w/ 2 levels "Female","Male": 2 2 2 2 2 2 2 2 2 2 ...
Currently This is what I am using and I keep getting NA when doing so.
full_data_1$Date
<-as.Date(as.character(full_data_1$Date
),format = "%m/%d/%Y")