[R] as.Date woes

2014-08-20 Thread Peter Langfelder
Hi all, I have recently started working with Date objects and find the experience unsettling, to put it mildly. The help for as.Date says, in part: ## S3 method for class 'character' as.Date(x, format = , ...) x: An object to be converted. format: A character string. If

Re: [R] as.Date woes

2014-08-20 Thread Peter Langfelder
Never mind... the solution was to read the source code of as.Date.character. It turns out the default format= is meaningless. If 'format' is not given in the call to as.Date, it is NOT assumed to be , and the function gives very different results from a call where the argument format= is given.