make_figTable_unitCompar: Function to make data table for plot with comparison of...

Description Usage Arguments Value

View source: R/make_figTable_unitCompar.R

Description

This funcition works with both ordinary data (RegData) and data with added national values (RegDataNatVal)

Usage

1
make_figTable_unitCompar(myIndata_NatVal, myInvar01 = myVar01)

Arguments

myIndata_NatVal

myIndata_NatVal <- RegData_NatVal

myInvar01

myVar01 <- PROP_PO10Pasientsikkerhet

Note: This function's name when writing aarsrapport 2019 (in 2020) was: make_proptable_hospitals(), and we then had to pass myVar01 on the format: myVar01 <- quo(PROP_PO10Pasientsikkerhet). This had to be fixed when implemented function in Shiny application, so that we "quo()" the variable name after it has been passed/inside our make_figTable_unitCompar function.

Value

summary table with propoprtions at each unit/hosptital and one national value to go into make_figFig_unitCompar


Rapporteket/norspis2 documentation built on April 18, 2021, 1:11 a.m.