Error: Package "DescTools" not available for R Version 3.4.2

To winsorize my data I would need the function " winsorize" from the DescTools package. I tried to install the package as every other:
install.packages("DestTools"), but an error shows up:

> install.packages('DescTools')
Installing package into '/Users/Liza/Library/R/3.4/library'
(as 'lib' is unspecified)
Warning in install.packages :
  package 'DescTools' is not available (for R version 3.4.2)

I already tried to set the Repository manually to, repos= '', since this package is listed in CRAN (see:

Is there any way I can install the package in my version? or do I need to download a newer version?

DescTools requieres R >= 3.5.0 so yes, you have to update your R version in order to install that package.

Thanks @andresrcs
it worked out finally.
I tried to run the winsorize function, I generated a single vector with my variable of interested, i tried to run the function as follow:
Winsorize(rev_vector), where rev_vector is numeric.
R gives me following error:

> Winsorize(rev_vector)
Error in `[.data.frame`(x, order(x, na.last = na.last, decreasing = decreasing)) : 
  undefined columns selected

I haven't found any replies on such an issue yet... Any ideas what this means?

I have answered this question here.

1 Like