Learn R Programming

toaster (version 0.2.5)

getNumericColumns: Filter numeric columns.

Description

Select numeric columns (names or rows) from table info data frame.

Usage

getNumericColumns(tableInfo, names.only = TRUE,
    include = NULL, except = NULL)

Arguments

tableInfo
data frame obtained by calling getTableSummary.
names.only
logical: if TRUE returns column names only, otherwise full rows of tableInfo.
include
a vector of column names to include. Output is restricted to this list.
except
a vector of column names to exclude. Output never contains names from this list.

See Also

getTableSummary

Examples

Run this code
pitchingInfo = getTableSummary(channel=conn, 'pitching_enh')
getNumericColumns(pitchingInfo)
num_cols_df = getNumericColumns(pitchingInfo, names.only=FALSE)

Run the code above in your browser using DataLab