search for: 302053l

Displaying 1 result from an estimated 1 matches for "302053l".

Did you mean: 30053
2011 May 13
1
PLSR error
...es = 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 this error > results <- plsr(Brix ~ NIR, data=plsdata) Error in `[[<-.data.frame`(`*tmp*`, i, value = c(302053L, 305882L, 292704L, : replacement has 448346 rows, data has 746 In addition: Warning message: In model.matrix.default(mt, mf) : variable 'Brix' converted to a factor the data table have this structure > str(plsdata) 'data.frame': 746 obs. of 2 variables: $ NIR : 'AsIs...