Re: [R] PLSR error

2011-05-14 Thread Uwe Ligges
On 13.05.2011 11:38, romzero wrote: Hi, this is my R-Script library(pls) file<- "C:\\TXT\\brix.txt" d<- as.matrix(read.table(file, header=T, sep=",", row.names = NULL)) plsdata<- data.frame(NIR=c(1:nrow(X))) plsdata$NIR<- I(d[,3:603]) plsdata$Brix<- d[,2] results<- plsr(Brix ~ NIR, data=plsdat

[R] PLSR error

2011-05-13 Thread romzero
Hi, this is my R-Script library(pls) file <- "C:\\TXT\\brix.txt" d <- as.matrix(read.table(file, header=T, sep=",", row.names = NULL)) plsdata <- data.frame(NIR=c(1:nrow(X))) plsdata$NIR <- I(d[,3:603]) plsdata$Brix <- d[,2] results <- plsr(Brix ~ NIR, data=plsdata) after the last string i have t