getNumericColumns(tableInfo, names.only = TRUE, include = NULL, except = NULL)
getTableSummary
.tableInfo
.getCharacterColumns
, getTemporalColumns
, getTableSummary
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')
getNumericColumns(pitchingInfo)
num_cols_df = getNumericColumns(pitchingInfo, names.only=FALSE)
}
Run the code above in your browser using DataLab