Learn R Programming

MUVR2 (version 0.1.0)

nearZeroVar: Identify variables with near zero variance

Description

Adapted and stripped down from mixOmics v 5.2.0 (https://cran.r-project.org/web/packages/mixOmics/).

Usage

nearZeroVar(x, freqCut = 95/5, uniqueCut = 10)

Value

nzv object

Arguments

x

a numeric vector or matrix, or a data frame with all numeric data.

freqCut

the cutoff for the ratio of the most common value to the second most common value.

uniqueCut

the cutoff for the percentage of distinct values out of the number of total samples.

Examples

Run this code
data("freelive2")
nearZeroVar(XRVIP2)
data("mosquito")
nearZeroVar(Xotu)

Run the code above in your browser using DataLab