sur_total: Calculate the survey weighted total of an object

View source: R/sur_total.R

sur_totalR Documentation

Calculate the survey weighted total of an object

Description

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

Usage

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)

Arguments

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


dcaseykc/dtsurvey documentation built on March 9, 2024, 1:09 p.m.