vignettes/R/convert2Score.R

convert2Score <-
function(Dvec){
#This Function will convert any object that is not zero or a positive number to NA 
#' @export
options(warn=-1)  #Turn off warnings
Dvec<-as.numeric(as.character(Dvec))  #Will induce a a warning 
Dvec[which(Dvec<0)]<-NA
options(warn=0) #Turn on warnings
return(Dvec)
}

Try the RSCABS package in your browser

Any scripts or data that you put into this service are public.

RSCABS documentation built on May 1, 2020, 9:06 a.m.