[RS-ecology] PLS COMMAND ERROR

Benjamin Leutner benjamin.leutner at uni-wuerzburg.de
Tue Jul 24 07:57:24 CEST 2018


Hi,

install.packages("pls") should do the trick.

cheers,
Benjamin

On 23.07.2018 23:47, Rop Willy wrote:
>
> Hello,
>
> ------------------------------------------------------------------------
>
> I have been practicing with the book and it’s been great so far. 
> However, there seems to be a problem with *Partial Least Squares 
> Regression* in superClass() function. When I run the following code:
>
> |sc <- superClass(p224r63_2011, trainData = training_2011, responseCol 
> = "class_name", model = "pls* |
>
> I get the following error:
>
> *Error: Required package is missing in addition: Warning message: 
> package ‘caret’ was built under R version 3.4.4.*
>
> When I first encountered this problem, I run *superClass()* using 
> different models without *lapply ()* in order to identify where the 
> problem was. It occurred to me that Random Forest and Support Vector 
> Machines with radial basis kernel work as required while when I 
> include “model = ‘pls’” it produces that error.
>
> NB: I thought maybe it was because of caret package, so I installed it 
> but it seems it was not.
>
> Which package is missing?
>
> Thank you,
>
> Rop
>
>>
>
> _______________________________________________
> RS-ecology mailing list
> RS-ecology at lists.uni-wuerzburg.de
> https://lists.uni-wuerzburg.de/mailman/listinfo/rs-ecology

-- 
Benjamin Leutner

Department of Remote Sensing
University of Wuerzburg
Campus Hubland Nord 86
97074 Wuerzburg, Germany

Tel: +49-(0)931-31 89594
Email: benjamin.leutner at uni-wuerzburg.de
Web: http://www.fernerkundung.uni-wuerzburg.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20180724/50c416c5/attachment.html>


More information about the RS-ecology mailing list