[R] as.date - german date format
John Kane
jrkrideau at yahoo.ca
Wed Jan 9 19:05:39 CET 2008
"Functions to convert between character
representations and objects of class "Date"
representing calendar dates."
$ xx :Factor w/ 66 levels
try as.character(xx)
--- Konga <ericwill75 at yahoo.de> wrote:
>
> Hi,
>
> I have a data.frame with the following variable:
> $ xx :Factor w/ 66 levels
> "01.02.2006","01.03.2006",..: 3 3 3 3 3 3 3 3 3
>
> now I´d like use "as.date" on it - if I comprehend
> the instructions on
>
http://finzi.psych.upenn.edu/R/library/base/html/format.Date.html
> it should work like this:
>
> as.date(xx, "%d.%m.%Y") - but it doesn´t...
>
> the survival Package ist loaded - is there a problem
> with the german format?
> Or did I understand something wrong?
>
> Much better than tranforming the format from to data
> would be to import it
> in the right format.
> Is there a parameter for read.csv to get it as a
> date from the beginning?
>
>
>
>
> --
> View this message in context:
>
http://www.nabble.com/as.date---german-date-format-tp14712654p14712654.html
> Sent from the R help mailing list archive at
> Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.
>
More information about the R-help
mailing list