Description Usage Arguments Details See Also Examples
view computed column statistics in a spreadsheet-style viewer in R.
1 2 |
tableInfo |
data frame with columns statistics to display. |
types |
vector with types of columns to include: numerical ( |
include |
a vector of column names to include. Output never contains attributes other than in the list. |
except |
a vector of column names to exclude. Output never contains attributes from the list. |
basic |
logical: if TRUE display minimum, maximum, average, deviation and mode (if present) |
percentiles |
logical: if TRUE display percentiles |
When both parameters basic
and percentiles
are FALSE view displays all statistics.
1 2 3 4 5 6 7 8 9 10 | 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')
viewTableSummary(pitchingInfo, percentiles=TRUE)
viewTableSummary(pitchingInfo, types=c("numeric", "temporal"))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.