filterOut {GCDkit}R Documentation

Extracting specified columns of a data frame/matrix

Description

This function returns the specified data columns from a matrix/data frame. Removes samples for which too few data are available.

Usage

filterOut(where, what, n = length(what))

Arguments

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)

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).

Value

Matrix with the extracted elements.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

Examples

filterOut(WR,c("SiO2","A/CNK","FeOt"))
round(filterOut(WR,REE,n=1),2)

[Package GCDkit version 4.0 Index]