I'd like to convert a whole column with as.Date to a date format.
str(fluesse)
'data.frame': 1049 obs. of 28 variables:
$ Datum : Date, format: NA NA NA ...
the dates are formatted like this:
07.08.14
This is what I tried
as.Date(as.character("07.08.14"), format="%d.%m.%y")
[1] "2014-08-07"
as.Date(as.character(fluesse$Datum), format = "%d.%m.%y")
[1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
I always get NA for the entries in fluesse$Datum
and when I try to check what class it has i gives me
class("fluesse$Datum")
[1] "character"
What am I missing when I try to use as.character
on the data.frame?