The attach(eqn) seems to change some things in the format, but doesn't solve the problem ... here is my script
> dep <- pls[,1:4] > ind <- pls[,5:8] > eqn <- data.frame(depy = dep, indx = ind) > attach(eqn) The following object(s) are masked from 'eqn (position 3)': depy.d, depy.h, depy.s, depy.w, indx.a, indx.i, indx.r, indx.x > dput(eqn) structure(list(depy.w = c(63L, 145L, 104L, 109L, 221L, 110L, 194L, 120L, 210L, 243L, 163L, 93L, 167L, 232L, 112L, 185L, 103L, …. a lot of formatting information …. 0L, 0L, 0L, 1L, 0L, 0L, 1L, 0L, 1L, 0L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 1L, 1L)), .Names = c("depy.w", "depy.h", "depy.d", "depy.s", "indx.a", "indx.i", "indx.r", "indx.x"), row.names = c(NA, -10000L), class = "data.frame") 'eqn' still doesn't seem to be a data.frame that the PLSR package will recognize Chris Westland ----- J. Christopher Westland Professor, Information & Decision Sciences, University of Illinois - Chicago 601 S. Morgan Street (UH2400) Chicago, IL 60607-7124 Telephone +1.312.860.0587 Google Voice +1.209.757.8849 westl...@uic.edu http://uic.edu/~westland -- View this message in context: http://r.789695.n4.nabble.com/Dataframes-in-PLS-package-tp4405798p4443993.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.