Re: [R] Convert Factor to Date

2017-08-22 Thread Spencer Graves
> > > > > > > *From:* R-help on behalf of Spencer > Graves > *Sent:* Tuesday, August 22, 2017 2:49 PM > *To:* r-help@r-project.org > *Subject:* Re: [R] Convert Factor to Date > > &g

Re: [R] Convert Factor to Date

2017-08-22 Thread Patrick Casimir
-16 Jul-16 1-Aug-16 Aug-16 1-Aug-16 Sep-16 1-Aug-16 Oct-16 1-Aug-16 From: R-help on behalf of Spencer Graves Sent: Tuesday, August 22, 2017 2:49 PM To: r-help@r-project.org Subject: Re: [R] Convert Factor to Date On 2017-08-22 1:30 PM, Patrick Casimir

Re: [R] Convert Factor to Date

2017-08-22 Thread Spencer Graves
On 2017-08-22 1:30 PM, Patrick Casimir wrote: Dear R Fellows, I Have a dataset( data1) with 2 columns of date showing a class of factor. How to convert them to date? Then compare them, keep the greater date only in a new column. Using as.Date to change the class to Date but the data becomes

[R] Convert Factor to Date

2017-08-22 Thread Patrick Casimir
Dear R Fellows, I Have a dataset( data1) with 2 columns of date showing a class of factor. How to convert them to date? Then compare them, keep the greater date only in a new column. Using as.Date to change the class to Date but the data becomes NA. Much Thanks COL1COL2 Apr-16 1-Nov-16