tabulate_responserate_demogdata: Tabulates response rates and logs to a csv file - for...

View source: R/tabulate.R

tabulate_responserate_demogdataR Documentation

Tabulates response rates and logs to a csv file - for demographic breakdowns.

Description

Tabulates response rates and logs to a csv file - for demographic breakdowns.

Usage

tabulate_responserate_demogdata(x, reportID, demogRollup,
  responseFlag = "QCOMP", outputFile = "Response_Log.csv")

Arguments

x

A data.frame

reportID

A character vector containing the column names in x containing the reporting IDs (e.g., ORGID, LEVEL1_ID, etc.)

demogRollup

A data.frame containing the demographic groupings to be reported. See WESdemogRollup18, or WESOrgdemogRollup18 for reference. Must include the columns reportID, Demographic, Group, Demographic_in_data, Group_in_data and Sort.

responseFlag

A character string of the column in data flagging completions. Default is "QCOMP".

outputFile

The path to the output file. Default is "Response_Log.csv"

Value

A data.frame with tabulated response rates

Examples

tabulate_responserate_demogdata(x=data, reportID="ORGID18", demogRollup = demog_rollup_org)


bcgov/WEStblr documentation built on Dec. 2, 2022, 10:53 a.m.