Here you go:
https://www.google.ca/search?q=r+partial+least+squares
https://www.google.ca/search?q=r+ridge+regression
> On Apr 18, 2017, at 3:45 PM, SAIRA SALEEM <sairasaleem550 at
gmail.com> wrote:
>
> i required r codes to calculate partial least squares and ridge regression
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.