Skip to content
Prev 359319 / 398503 Next

doubt clarification

On 15/03/2016 12:53 PM, MEHER DIVYA BARATAM wrote:
You need to put the format in quotes.  R sees %d-% as a "SPECIAL" 
operator, and it is an error for one of those to appear in that position.

So use

as.Date(all.2015$Day, "%d-%m-%y")

(and be careful of the quotes:  these are regular ASCII quotes, not directional quotes which some editors will insert).


Duncan Murdoch