Displaying 3 results from an estimated 3 matches for "7c6abf3517ab5f407427d308d4e98e9efd".
2017 Aug 22
1
Convert Factor to Date
...ersion deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-help&data=02%7C01%7Cpatrcasi%40nova.edu%7C6abf3517ab5f407427d308d4e98e9efd%7C2c2b2d312e3e4df1b571fb37c042ff1b%7C0%7C0%7C636390246143633480&sdata=jwTeb%2BvH0bbkXdckgzE6PJZ3gDl9d1%2F3t9K%2BxDtjyls%3D&reserved=0
> PLEASE do read the posting guide https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.R-project.org%2Fposting-guide.html&data=02%7C01...
2017 Aug 22
0
Convert Factor to Date
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 NA.
????? When I specified a format with the second date, I got the desired
2017 Aug 22
5
Convert Factor to Date
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
COL1 COL2
Apr-16 1-Nov-16
May-16 1-Nov-16
Jun-16 1-Nov-16
Jul-16 1-Nov-16
Aug-16 1-Nov-16
Sep-16 1-Nov-16
Oct-16 1-Nov-16