sur_total | R Documentation |
Calculate the survey weighted total of an object
Calculate the total from a normal survey
calculate the total for a replicate survey
calculate admin total
sur_total(x, ...)
## Default S3 method:
sur_total(x, na.rm = T, as_list = FALSE, sv, ids, st, ...)
## S3 method for class 'factor'
sur_total(x, na.rm = T, as_list = FALSE, sv, ids, st, ...)
## S3 method for class 'character'
sur_total(x, ...)
surdes_total(x, ids, sv)
repdes_total(x, ids, sv)
admin_total(x)
x |
vector. Variable to compute a total |
... |
unused |
na.rm |
logical. Determines whether NA values will be omitted from the analysis |
as_list |
logical. Determines whether the result should returned as a list– mostly for factors |
sv |
data.table. Survey vars data.table |
ids |
numeric. vector of indices to operate on |
st |
character. survey type |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.