#' @export
individualFill <- function(varName, boxes) {
boxes <- jsonlite::fromJSON(boxes, simplifyMatrix = FALSE)
dataColumn <- unlist(getVarByName(varName)[,1])
countings <- rep(0, length(boxes))
for (val in dataColumn){
for (i in 1:length(boxes)) {
if (val > boxes[[i]][1] & val <= boxes[[i]][2]){
countings[i] <- countings[i] + 1
break()
}
}
}
return(countings)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.