if (interactive()) {
# initialize connection to Dallas database in Aster
conn = odbcDriverConnect(connection="driver={Aster ODBC Driver};
server=<dbhost>;port=2406;database=<dbname>;uid=<user>;pwd=<pw>")
null_counts = getNullCounts(conn, "baseball.batting",
include=c('g','ab','r','h','so','bb','cs'),
where='yearid > 2000')
}
Run the code above in your browser using DataLab