[R] How to use as.Date (or something else) with "31-Jul-2010 23:59:00"
clint at ecy.wa.gov
Wed Jul 27 00:32:15 CEST 2011
Clint Bowman INTERNET: clint at ecy.wa.gov
Air Quality Modeler INTERNET: clint at math.utah.edu
Department of Ecology VOICE: (360) 407-6815
PO Box 47600 FAX: (360) 407-7534
Olympia, WA 98504-7600
USPS: PO Box 47600, Olympia, WA 98504-7600
Parcels: 300 Desmond Drive, Lacey, WA 98503-1274
On Tue, 26 Jul 2011, Eduardo M. A. M.Mendes wrote:
> I have a huge file (not an R-file) in which the first column is a string
> with date, hour, minutes and seconds (For instance, "31-Jul-2010 23:59:00").
> I tried as.Date but the error msg was "Error in charToDate(x) :
> character string is not in a standard unambiguous format".
> I have checked the help for the function as well as date but to no avail.
> How can that sort of string be transformed to something useful in R?
> Many thanks
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help