Nothing
#' @rdname internal_desc
#' @export
wtcalc.unit <- function(wtLUT, strvar, unit, unitvar, acrevar){
## DESCRIPTION: Calculates weights (proportions) of strata by estimation unit
wtUnit <- wtLUT[wtLUT[,unitvar] %in% unit,]
strnamesUnit <- unique(wtUnit[,strvar])
stracres <- tapply(wtUnit[,acrevar], wtUnit[,strvar], sum)
stracres[!(levels(strnamesUnit) %in% strnamesUnit)] <- 0
stracres/sum(stracres)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.