| varidele | R Documentation |
Removes any numeric column whose missing value proportion exceeds a given threshold.
varidele(data, cols = NULL, fraction = 0.25, verbose = FALSE)
data |
A data frame or matrix containing numeric columns. |
cols |
Column indices or names of the numeric columns to
consider. If |
fraction |
Missing proportion threshold. Columns with a missing
fraction |
verbose |
Logical; if |
The missing fraction is computed after excluding rows where all selected variables are NA. Any column whose missing fraction reaches the threshold is removed, regardless of its position in the selected block.
A data frame with the retained columns.
Chun-Sheng Liang <chun-shengliang@qq.com>
1. Example data is from https://smear.avaa.csc.fi/download. It includes particle number concentrations in SMEAR I Varrio forest.
varidele(data, cols = 5:65)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.