app_n_inst<- function(DB) {
require(dplyr)
out <- tbl(DB, "instqcllmeta") %>%
select(Serialnumber) %>%
distinct() %>%
collect() %>%
mutate(., plat = substr(gsub("^00","",Serialnumber), 1, 2)) %>%
group_by(plat) %>%
count()
setNames(out$n,out$plat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.