filterOut {GCDkit} | R Documentation |
This function returns the specified data columns from a matrix/data frame. Removes samples for which too few data are available.
filterOut(where, what, n = length(what))
where |
name of the matrix/data frame |
what |
character vector with names of the columns to be extracted |
n |
how many empty items are allowed per sample (see details) |
Finds all columns in 'where
' whose name appears in 'what
'. The
function eliminates all rows that have at least 'n
NAs (by default only
completely empty rows).
Matrix with the extracted elements.
Vojtech Janousek, vojtech.janousek@geology.cz
filterOut(WR,c("SiO2","A/CNK","FeOt")) round(filterOut(WR,REE,n=1),2)