mv.filter | R Documentation |
This function calculates the percentage of missing values and keeps those features with missing values percentage less than the designed threshold.
mv.filter(x, thres = 0.3)
x |
a data matrix. The columns are features. |
thres |
threshold of missing values. Features less than this threshold will be kept. Value has to be between 0 and 1. |
a list of with contents:
dat the filtered data matrix
idx a logical vector of index for keeping features.
Other missing value processing:
mv.filter.qc()
,
mv.perc()
names(man_qc)
data <- man_qc$data
meta <- man_qc$meta
## check missing value rates
tail(sort(mv.perc(data)), 20)
## missing values filtering
tmp <- mv.filter(data, thres = 0.15)
data_f <- tmp$dat
## compare
dim(data_f)
dim(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.