count_responses: Calculate the number of patient feedback received by week/...

View source: R/helper_functions.R

count_responsesR Documentation

Calculate the number of patient feedback received by week/ month/ quarter

Description

This function takes a (filtered) dataset and returns the numbers of pieces of patient feedback received by week/ month/ year. Optionally select a split by mode of feedback

Usage

count_responses(data, period, mode, area = NA, filter_facets = NULL)

Arguments

data

Dataframe, filtered by date/ area in a reactive function

period

string, either "week", "month", "year", indicating the preferred granularity with respect to time

mode

boolean- return grouped by mode of response or all together

area

level of trust to report at- NA for Trust, or string giving grouping variable- Division, Directorate, Team


CDU-data-science-team/feedback_tracker documentation built on Jan. 2, 2023, 5:54 p.m.