flows: Generate flow table

Description Usage Arguments Details Value

View source: R/flows.r

Description

Generate flow table

Usage

1
flows(from, to, zeros = TRUE, keepFrom = NULL, keepTo = NULL)

Arguments

from

patients home region

to

patients destination

zeros

retain combinations with zero counts

keepFrom

values of 'from' to keep

keepTo

values of 'from' to keep

Details

keepFrom and keepTo default to retaining all unique values of the respective options

Value

dataframe detailing flow between from and to.

from

entries in from

to

entries in to

N

frequency of flow from from to to

N_from

total number of interventions from from

N_to

total number of interventions to to

prop_from

proportion of interventions from from going to to

prop_to

proportion of interventions to to originating in from

rank_from

rank of prop_from within each from

rank_to

rank of prop_to within each to


aghaynes/HSAr documentation built on Sept. 20, 2021, 5:29 p.m.