Re: [R] How to save components in pls model

2019-06-23 Thread Jeff Newmiller
By one obvious measure of "save" it looks like you already did save the results... they are in your `silt` object. What are you trying to accomplish? Also, please learn to send plain-text emails to this mailing list... the mailing list will strip out your formatting anyway, leaving more or les

[R] How to save components in pls model

2019-06-23 Thread Hossein Shafizadeh
Hello everyone, I want to *save the components *when using pls, I tried several ways but failed. No matter if using the caret package or in other coding formats. The code in the caret is: factors <- c("a","b","c") set.seed(123) silt <- caret::train(extsentinel[,factors],extsentinel$Silt,metric="RMS