R/NumCat.R

Defines functions NumCat

Documented in NumCat

NumCat <-
function(ColDes,DataMat,NADes){
#NADes is the value for NA often -99
ColDes=ColDes[[1]]
DataVec=DataMat[,ColDes]
CatNum=length(unique(DataVec[which((DataVec)!=NADes)]))
return(CatNum)}

Try the PathSelectMP package in your browser

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

PathSelectMP documentation built on May 2, 2019, 3:15 a.m.