parse.total.popn.size: handle the total.popn.size argument in a uniform way across...

View source: R/helper_functions.r

parse.total.popn.sizeR Documentation

handle the total.popn.size argument in a uniform way across several functions

Description

handle the total.popn.size argument in a uniform way across several functions, including kp.degree.estimator, nsum.internal.consistency, and nsum.estimator.

Usage

parse.total.popn.size(total.popn.size, survey.data, verbose = FALSE)

Arguments

total.popn.size

value to parse

survey.data

the dataframe we're analyzing, which may or may not have an attribute called 'total.popn.size'

verbose

if TRUE, print messages to the screen

Details

The result depends upon the value that was passed in:

  • NA if total.popn.size is NA then work with proportions

  • NULL if total.popn.size is NULL (nothing passed in), then assume that there's a total.popn.size attribute associated with the dataset we're using

  • numerical value if an actual total.popn.size was passed in,

Value

the parsed total population size


dfeehan/networkreporting documentation built on May 17, 2023, 1:06 a.m.