NumCat: Number of Categories

Description Usage Arguments Details Value Note Author(s) References Examples

Description

used as a helper function to return number of categories of categorical variable

Usage

1
NumCat(ColDes, DataMat, NADes)

Arguments

ColDes

which column number is the number for the data vector for which number of unique categories to be returned

DataMat

this the dataframe or can be a matrix of data with different variables as the columns

NADes

this is the value to be used for the missing category of data

Details

helper function which specifies number of unique categories excluding missing category of a column of a dataframe or matrix

Value

comp1

returns numeric value of number of unique categories excluding missing category for vector of data

Note

No notes

Author(s)

William Terry

References

No References

Examples

1
2
InitD=Simulate(MissingYN=1)
NumCat(2,InitD,c(-99))


Search within the PathSelectMP package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.