[R] Error in fromchar(as.character(x)) : character string is not in a standard unambiguous format

From: Bob Green <bgreen_at_dyson.brisnet.org.au>
Date: Fri, 11 Apr 2008 18:28:06 +1000

Hello,

I was hoping for advice regarding resolving the above error.

I have a csv file that contains the following variable:

  $ Order.Made.Date : Factor w/ 299 levels "1-Apr-08","1-Aug-05",..: 278 285 91 286 159 132 108 261 282 147 ...

I want to calculate a variable named F.length, which is today's date minus the values contained in the variable: April$Order.Made.Date) I tried altering the date format but continued to receive the same error.

> F.length <- difftime ("11/04/2008", April$Order.Made.Date)
 > Error in fromchar(as.character(x)) : character string is not in a standard unambiguous format

> Order.date <- as.Date (April$Order.Made.Date)
> Error in fromchar(x) : character string is not in a standard
unambiguous format
 > Order.date <- 'as.POSIXlt' (April$Order.Made.Date) Error in fromchar(as.character(x)) : character string is not in a standard unambiguous format

Any suggestions are appreciated,

Bob



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 11 Apr 2008 - 08:31:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Apr 2008 - 10:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive