Description Usage Arguments See Also Examples
Selects character columns (names or rows) from table info data frame.
1 2 | getCharacterColumns(tableInfo, names.only = TRUE, include = NULL,
except = NULL)
|
tableInfo |
data frame obtained by calling |
names.only |
logical: if TRUE returns column names only, otherwise full rows of |
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. |
getNumericColumns
, getTemporalColumns
, getTableSummary
1 2 3 4 5 6 7 8 9 | if(interactive()){
# initialize connection to Lahman baseball database in Aster
conn = odbcDriverConnect(connection="driver={Aster ODBC Driver};
server=<dbhost>;port=2406;database=<dbname>;uid=<user>;pwd=<pw>")
pitchingInfo = getTableSummary(channel=conn, 'pitching_enh')
getCharacterColumns(pitchingInfo)
char_cols_df = getCharacterColumns(pitchingInfo, names.only=FALSE)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.