Skip to contents

Load or update grouped data means dataset from PovcalNet Masterfile. See details.

Usage

pip_gdm(
  action = "update",
  force = FALSE,
  pcndir = gls$PCN_MASTER,
  maindir = gls$PIP_DATA_DIR
)

Arguments

action

character: Either "load" or "update". Default is "update". If "update" data will be updated on the system. If "load" data is loaded in memory.

force

logical: If TRUE data will be overwritten.

pcndir

character: PovcalNet Masterfile directory.

maindir

character: Main directory of project.

Details

Survey means cannot be automatically calculated for grouped data, so at some stage the mean needs to be entered manually. This function reads from the PCN Masterfile to ensure that PCN and PIP uses the same data means.

The dependency on the PCN Masterfile should be changed in the future.