Skip to content
Prev 44719 / 398528 Next

Need help on parsing dates

Ajay Shah wrote:

            
To see what class a column in a data.frame is the best way is to try:

sapply(A, data.class)

My guess is that "V1" is being read in as a factor (default). To convert 
to character to use with as.date, then use

as.date(as.character(A$V1), "ymd")

BTW, I would avoid using "try" as a variable name since "try" is a 
function in the base package.

As for you second question, see the package ts for ARIMA
modeling.

-sundar