summaryrefslogtreecommitdiff
path: root/R/rsc.R
diff options
context:
space:
mode:
authorLuca Coraggio <luca.coraggio@unina.it>2022-06-20 16:10:02 +0000
committercran-robot <csardi.gabor+cran@gmail.com>2022-06-20 16:10:02 +0000
commit4690747837f7266059dbd56690b52fe51aa5bd2e (patch)
treed39c4ef640626e1382ee1fccfb1e3d5c8d1e14a2 /R/rsc.R
parent17556182f98e2dc51e236b01aec7eef054e7e2f9 (diff)
version 2.0.2
Diffstat (limited to 'R/rsc.R')
-rw-r--r--R/rsc.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/rsc.R b/R/rsc.R
index 8182d1c..f82df51 100644
--- a/R/rsc.R
+++ b/R/rsc.R
@@ -4,7 +4,7 @@ rsc <- function(cv, threshold = "minimum"){
## cv = u ## a class cv_rsc or any other correlation matrix
## threshold = "minimum" ## "minimum", "minimum1se" or numeric in (0,1)
- if(class(cv) == "rsc_cv"){
+ if(is(cv, "rsc_cv")){
## check threshold
if(is.numeric(threshold)){