summaryofEvents: Summarizes the visits by age groups and by day

Description Usage Arguments Details Value

Description

Summarizes the visits by age groups and by day

Usage

1

Arguments

condition

a string indicating the condition under consideration

df

a data.frame containing individual records with date and age variables formatted properly.

fields

a vector of column indexes to be included in the final output

Details

The raw data.frame can be accessed using the label "tmpdf". The events per day data.frame can be accessed with the label "events.per.day". The number of events per day for a facility can be accessed with the label "events.per.day.per.facility".

Note: fields parameter must be an integer vector. Otherwise it will be ignored. In addition, the Unique visit ID field must also be included, otherwise an error will occur.

Note: Other columns that are required in the fields vector includes Earliest_Date, Age,

Value

a list containg the raw reduced data.frame, a data.frame containing the number of events for each day, and a third data.frame containing the number of events per facility


hmenag1/ss4weka documentation built on May 17, 2019, 4:34 p.m.