I have a column called date, chr class, format mm/dd/yyyy.
I have tried converting it to date with lubridate as follows:
df$date<- df %>% as.Date(date)
df$date<- df %>% as_date(date)
both resulted in the Error in as.Date.default(., date): do not know how to convert '.' to class “Date”
df$date<- df %>% mdy(date)
resulted in Error in as.character(x): cannot coerce type 'closure' to vector of type 'character'