Suresh_FSFM
2009-Apr-02 10:25 UTC
[R] help regarding converting the available date in "right" date
Dear R users, I have a table with say three columns and 70 rows. The second column has dates in format dd.mm.yy (i.e. 01.10.07 indicating record for October 1, 2007). I read the text file, containing the records. Now, I want to find out the weekday for each date. However, I cannot do so. 1) If I type result[1,"Date"] to see the Date in the first row, I get following output: 70 Levels: 01.10.07 01.11.07 02.10.07 02.12.07.. and so on. 2) If I use any functions related to Date or time, I get the message: character string is not in a standard unambigious format. :-( I can understand that first I have to "convert" the existing date format to such a format that R "recognizes" as date format. However, I am not able to do so. I did try to use format.Date() and as.Date() functions. However, no success. I am making some silly mistake. Please help. Thank you. Best Regards, Suresh -- View this message in context: http://www.nabble.com/help-regarding-converting-the-available-date-in-%22right%22-date-tp22844907p22844907.html Sent from the R help mailing list archive at Nabble.com.
Uwe Ligges
2009-Apr-02 10:37 UTC
[R] help regarding converting the available date in "right" date
I have answered almost the same question a few minutes ago. Why do you send questions more than once? It won't make responses quicker but will confuse people who spend their time in answering messages who do not see that the questions is already answered in another thread!!!! Uwe Ligges Suresh_FSFM wrote:> Dear R users, > > I have a table with say three columns and 70 rows. > The second column has dates in format dd.mm.yy (i.e. 01.10.07 indicating > record for October 1, 2007). > I read the text file, containing the records. Now, I want to find out the > weekday for each date. > However, I cannot do so. > > 1) > If I type result[1,"Date"] to see the Date in the first row, I get following > output: > 70 Levels: 01.10.07 01.11.07 02.10.07 02.12.07.. and so on. > > 2) > If I use any functions related to Date or time, I get the message: character > string is not in a standard unambigious format. > :-( > > I can understand that first I have to "convert" the existing date format to > such a format that R "recognizes" as date format. However, I am not able to > do so. > > I did try to use format.Date() and as.Date() functions. However, no success. > I am making some silly mistake. > Please help. > > > Thank you. > > Best Regards, > Suresh >
Possibly Parallel Threads
- How to create sequence of constant time interval
- How to collect arrays in an array?
- help regarding storing time difference values in same unit?
- How to print console output statements from within script or function?
- How to declare an array with columns storing different datatypes/precision