
Last chance! 50% off unlimited learning
Sale ends in
DBI.pdf
in the base directory of this package
or
MySQL
mysqlDBApply
dbSendQuery
fetch
## compute quanitiles for each network agent
con <- dbConnect(MySQL(), group="vitalAnalysis")
rs <- dbSendQuery(con,
"select Agent, ip_addr, DATA from pseudo_data order by Agent")
out <- dbApply(rs, INDEX = "Agent",
FUN = function(x, grp) quantile(x$DATA, names=FALSE))
Run the code above in your browser using DataLab