bu_add_month_counts: Add Month Counts using a summary function

View source: R/01_Bed_Unit_Utilization_utils.R

bu_add_month_countsR Documentation

Add Month Counts using a summary function

Description

Add Month Counts using a summary function

Usage

bu_add_month_counts(x, n = 24, fn = bed_nights_per_ee, ...)

Arguments

x

(data.frame) with necessary functions for fn to work.

n

(numeric) Vector of how many months previous to create summaries for with fn

fn

(function) with which to summarise months. One of bed_nights_per_ee or unit_capacity

...

Additional arguments passed to fn

Value

(data.frame) with columns containing the days the client was enrolled for the month. Columns are named with a three letter month abbreviation followed by a four digit year. IE Jun2020

See Also

bed_nights_per_ee, unit_capacity, nth_Month, bu_sum_months


COHHIO/Rm_data documentation built on Dec. 9, 2024, 2:10 p.m.