inspect_factor: Inspects NHIC data items

Description Usage Arguments Value Examples

Description

Produces basic summary data for NHIC data items when passed NHIC data in the form produced by the readItems() function. Calls seperate helper functions for the different data types available.

Usage

1

Arguments

d

data generated from the ccdata::readItems() function

f.dict

field dictionary generated from ITEM_REF.yml via ccfun::load_ccDict.R

...

args to helper functions (e.g. palette="Greens" to ggMMplot)

Value

r (a list) containing details of the item and a plot including details broken down by site_id (ICU)

Examples

1
2
3
4
5
6
# Example call to inspect item function
# system.time(r <- inspect_item(rdt, ccdata.dict[["NIHR_HIC_ICU_0108"]]))
# Example plotting function
# ggplot(r$inspect$plot_data) +
#     geom_freqpoly(aes(x=val, y=..density.., colour=site_id),
#    binwidth=1)

docsteveharris/ccfun documentation built on May 15, 2019, 9:42 a.m.