Learn R Programming

surveytable (version 0.9.6)

total_rate: Overall rate

Description

Overall rate

Usage

total_rate(
  pop,
  per = getOption("surveytable.rate_per"),
  csv = getOption("surveytable.csv")
)

Value

A table

Arguments

pop

population

per

calculate rate per this many items in the population

csv

name of a CSV file

See Also

Other tables: tab(), tab_cross(), tab_rate(), tab_subset_rate(), total()

Examples

Run this code
set_survey(namcs2019sv)
total_rate(uspop2019$total)

Run the code above in your browser using DataLab