Re: [R] convert sas date format

2012-01-28 Thread peter dalgaard
What does this have to do with date formats?? Please do not use "reply" to discuss unrelated matters; even if you change the header, threading mail readers will become confused. Approach is a non-factor (the output says so), so treated as numerical, i.e. you are effectively doing a linear regre

Re: [R] convert sas date format

2012-01-27 Thread Johnny Liseth
I am relatively new to R and I have problem figuring out why the data file appear to be read in fine, but the one way ANOVA is not calculated correctly. In other problems this works fine. This program is listed at the end, and the small text file in online. There are 24 data points in three group

Re: [R] convert sas date format

2012-01-27 Thread MacQueen, Don
Does this do what you want? sasf <- c('31.12.1959','1.1.1960','1.2.1960') dt <- as.Date(sasf, format='%d.%m.%Y') -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 1/27/12 7:45 AM, "Fischer, Felix" wrote: >Hi everybo

Re: [R] convert sas date format

2012-01-27 Thread peter dalgaard
On Jan 27, 2012, at 18:58 , David Winsemius wrote: > > On Jan 27, 2012, at 10:45 AM, Fischer, Felix wrote: > >> Hi everybody, >> >> i have a csv-file, containing dates in an akward sas format, where >> 31.12.1559 is -1, 1.1.1960 is 1, 2.1.1960 is 2 and so on (see >> http://www.sfu.ca/sasdoc/

Re: [R] convert sas date format

2012-01-27 Thread David Winsemius
On Jan 27, 2012, at 10:45 AM, Fischer, Felix wrote: Hi everybody, i have a csv-file, containing dates in an akward sas format, where 31.12.1559 is -1, 1.1.1960 is 1, 2.1.1960 is 2 and so on (see http://www.sfu.ca/sasdoc/sashtml/lrcon/zenid-63.htm ). Is there any function in R to convert th

[R] convert sas date format

2012-01-27 Thread Fischer, Felix
Hi everybody, i have a csv-file, containing dates in an akward sas format, where 31.12.1559 is -1, 1.1.1960 is 1, 2.1.1960 is 2 and so on (see http://www.sfu.ca/sasdoc/sashtml/lrcon/zenid-63.htm ). Is there any function in R to convert this into -M-D easily? Best, Felix Dr. rer. nat. Dipl