# NOT RUN {
v=c("jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez")
month2num(v)
v=data.frame('date'=c("janeiro","fevereiro",'mar<U+00C3><U+00A7>o','abril'),'values'=c(18,27,10,48))
month2num(v$date)
#or
month2num(v[[1]])
#you can substitute column with function:
v$date = month2num(v$date)
v[[1]] = month2num(v[[1]])
# }
Run the code above in your browser using DataLab