Re: [R] Using ADF.Test

2009-06-10 Thread Wacek Kusnierczyk
Achim Zeileis wrote: [...] > is.vector(as.vector(...)) is not necessarily TRUE. Consider > > x <- cars[, 1, drop=FALSE] > is.vector(x) > is.vector(as.vector(x)) > identical(x, as.vector(x)) interesting. i wonder why as.vector does not give, at the very least, a warning when the result

Re: [R] Using ADF.Test

2009-06-10 Thread Achim Zeileis
On Wed, 10 Jun 2009, matifou wrote: ehxpieterse wrote: Hi, I am quite new to R and would appreciate some guidance, if possible. I have imported a csv file: spread <- read.csv("Spread.csv") I get the following error when I try to run adf.test: adf.test(spread,alternative = c("stationary", "

Re: [R] Using ADF.Test

2009-06-10 Thread matifou
ehxpieterse wrote: > > Hi, > > I am quite new to R and would appreciate some guidance, if possible. > > I have imported a csv file: spread <- read.csv("Spread.csv") > > I get the following error when I try to run adf.test: >> adf.test(spread,alternative = c("stationary", "explosive"),0) > Er

[R] Using ADF.Test

2009-06-09 Thread ehxpieterse
Hi, I am quite new to R and would appreciate some guidance, if possible. I have imported a csv file: spread <- read.csv("Spread.csv") I get the following error when I try to run adf.test: > adf.test(spread,alternative = c("stationary", "explosive"),0) Error in embed(y, k) : 'x' is not a vector