I have a dataframe column like this
> class(df$Released)
[1] "Date"
When I use apply
over the vector, the value passed to FUN is coerced to character
> apply(df[1, ], 1, function(x) class(x['Released']))
1
"character"
What is going on?