findSafeVars: Return variables with sufficient variation for cLHS

View source: R/multivariate.R

findSafeVarsR Documentation

Return variables with sufficient variation for cLHS

Description

Datasets that are nearly or completely invariant can pose issues for the cLHS algorithm. This function identifies vairables that have standard deviation smaller than a specified tolerance. Default: 1e-5

Usage

findSafeVars(x, id, tol = 1e-05)

Arguments

x

data.frame in wide format

id

vector of IDs variables to exclude from SD test, first element is the group ID

tol

tolerance for near-0 SD test; Default: 1e-5

Value

A character vector of "safe" column names


ncss-tech/soilReports documentation built on April 25, 2024, 1:03 a.m.