tabulate_questionscore_demogdata: Tabulates question scores and logs to a csv file - for...

View source: R/tabulate.R

tabulate_questionscore_demogdataR Documentation

Tabulates question scores and logs to a csv file - for demographic breakdowns.

Description

Tabulates question scores and logs to a csv file - for demographic breakdowns.

Usage

tabulate_questionscore_demogdata(x, reportID, demogRollup,
  questions = WESquestions18, outputFile = "Scores_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.

questions

A data.frame containing the questions used in the survey. Default is the questions file from WES 2018. See WESquestions18 for reference.

outputFile

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

Value

A data.frame with tabulated response rates

Examples

tabulate_questionscore_demogdata(data,reportID="ORGID18",demogRollup = demog_rollup_org)


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