View source: R/helper_functions.R
count_responses | R Documentation |
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
count_responses(data, period, mode, area = NA, filter_facets = NULL)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.