On Wed, Nov 7, 2012 at 3:31 PM, frespider <frespi...@hotmail.com> wrote: > Hi, > > Can you please help me with this please? > > What I am trying to do is call a vector from R function and used in the new > function > > So I create 4 functions with these arguments > M11 <- function(TrainData,TestData,mdat,nsam) { > ls <- list() > I have few statments one of them is > vectx <- c(,1,2,3,4,5,6,6) > vectz <- c(12,34,5,6,78,9,90) > and then................ > ls(vectx=vtecx,vectz=vectz) > return(ls) > }
This is not valid assignment to a list. In fact, I'm rather surprised it doesn't throw an error... Michael ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.