tabulate_driverscore_demogdata: Tabulates driver/engagement scores and logs to a csv file -...

View source: R/tabulate.R

tabulate_driverscore_demogdataR Documentation

Tabulates driver/engagement scores and logs to a csv file - for demographic breakdowns.

Description

Tabulates driver/engagement scores and logs to a csv file - for demographic breakdowns.

Usage

tabulate_driverscore_demogdata(x, reportID, demogRollup,
  questions = WESquestions18, outputFile = "Drivers_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 "Driver_Log.csv"

Value

A data.frame with tabulated response rates

Examples

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


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