I have a text file that includes dates, and want to convert it to a datatable.
Converting the dates such as 03-FEB-2011 can be done with
data$fecha <- as.Date(data$textDate , "%d-%b-%Y")
The problem is that the column is in Spanish, so I don't get Jan but Ene, or Aug but Ago. How can I change the locale so the %b abbreviation works for Spanish? Is there any other way to achieve this?