1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
require (RJDBC); drv <- JDBC ("com.ibm.db2.jcc.DB2Driver"); conn <- dbConnect (drv, "jdbc:db2:exp004"); dbListTables (conn); dbGetQuery (conn, "SELECT COUNT(*) FROM vis_collect"); d <- dbReadTable (conn, "vis_collect"); hist (d$"N_CITES"); dbDisconnect (conn); dbUnloadDriver (drv);
Copyright © 2009 Don Pellegrino All Rights Reserved.