Re: [R] Problems using plsr() in the pls package

2016-11-20 Thread Rui Barradas
Hello, Inline. Em 20-11-2016 20:40, Rolf Turner escreveu: On 21/11/16 09:03, Rui Barradas wrote: Hello, I know nothing about the plsr package but in the data.frame 'gasoline' the column NIR is numeric and in 'lid_allt2' the column lid_nose is character. Maybe you need lid_allt2$lid_nose <- a

Re: [R] Problems using plsr() in the pls package

2016-11-20 Thread Rolf Turner
On 21/11/16 09:03, Rui Barradas wrote: Hello, I know nothing about the plsr package but in the data.frame 'gasoline' the column NIR is numeric and in 'lid_allt2' the column lid_nose is character. Maybe you need lid_allt2$lid_nose <- as.numeric(lid_allt2$lid_nose) but I really don't know if thi

Re: [R] Problems using plsr() in the pls package

2016-11-20 Thread Rui Barradas
Hello, I know nothing about the plsr package but in the data.frame 'gasoline' the column NIR is numeric and in 'lid_allt2' the column lid_nose is character. Maybe you need lid_allt2$lid_nose <- as.numeric(lid_allt2$lid_nose) but I really don't know if this is the problem. Hope this helps,

[R] Problems using plsr() in the pls package

2016-11-20 Thread CG Pettersson
Dear all, I am trying to do a PLS regression using plsr() from the pls package. I have tried to make a dataset according to the methods recommended in "Introduction to the pls Package" (Mevik & Wehrens, 2015) and it looks like I get a structure in the dataset that resembles what is packed with th