Re: [R] Problems Dating....

2011-06-01 Thread David Winsemius
On Jun 1, 2011, at 5:14 PM, Struckmeier, Nathanael wrote: I'll give this a try and mess with what format to convert it to. Thanks again! You need to decide whether to use "%d/%m/%Y" or "%m/%d/%" , since the information you provided so far leaves that undetermined. -- David. Hi Nat, I

Re: [R] Problems Dating....

2011-06-01 Thread Struckmeier, Nathanael
I'll give this a try and mess with what format to convert it to. Thanks again! -Original Message- From: Stephan Kolassa [mailto:stephan.kola...@gmx.de] Sent: Wednesday, June 01, 2011 2:10 PM To: Struckmeier, Nathanael Cc: R-help@r-project.org Subject: Re: [R] Problems Dating...

Re: [R] Problems Dating....

2011-06-01 Thread Marc Schwartz
On Jun 1, 2011, at 3:59 PM, Struckmeier, Nathanael wrote: > I'm trying to convert a column in a data frame with dates from a > "Factor" type to a "Date Object" but I am encountering and error. (I am > having trouble plotting an x,y scatter and I suspect it's something with > my data format). I hav

Re: [R] Problems Dating....

2011-06-01 Thread Stephan Kolassa
Hi Nat, I guess something like as.Date(as.character("3/4/2007"),format="%d/%m/%Y") should work - as.character() coerces the factors to characters, which the as.Date() function can work with, given the right format argument. HTH Stephan Am 01.06.2011 22:59, schrieb Struckmeier, Nathanael: I'

[R] Problems Dating....

2011-06-01 Thread Struckmeier, Nathanael
I'm trying to convert a column in a data frame with dates from a "Factor" type to a "Date Object" but I am encountering and error. (I am having trouble plotting an x,y scatter and I suspect it's something with my data format). I have a table with two columns and 8,000 rows. > dsort=read.delim("C: