[R] Dataframes in PLS package

westland westland at uic.edu
Sun Mar 4 19:37:22 CET 2012

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 =
-10000L), class = "data.frame")

'eqn'  still doesn't seem to be a data.frame that the PLSR package will

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
westland at uic.edu
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.

More information about the R-help mailing list