names variables with an index

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

names variables with an index

crisando
Hellou. I'm a new in R, I want to define urca.adf objects for each variables in my dataset ( 10 variables), so I tried the next code
  for (i in 1:10){
    test.p(i) <- summary(ur.df(data[,i],type="trend", lags=5))
  }
but I don't know how to define the index that alow me create test.p1, test.p2, ..., test.p10
Please, help.