Search for variables with zero range in a matrix.
A matrix or a data.frame with the data, where rows denotes the observations and the columns contain the dependent variables.
If your data are grouped, for example there is a factor or numerical variable indicating the groups of the data supply it here, otherwise leave it NULL.
The function identifies the variabels with zero range, instead of a zero variance as this is faster. It will work with matrices and data.frames.
A numerical vector of length zero if no zero ranged variable exists, or of length at least one with the index (or indices) of the variable(s) that need attention or need to be removed.
R implementation and documentation: Michail Tsagris <email@example.com> and Manos Papadakis <firstname.lastname@example.org>.
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.