R/db_create_gd_svy_mean_table.R
db_create_gd_svy_mean_table.Rd
Create table with grouped data survey means from the PCN Masterfile.
db_create_gd_svy_mean_table(pcn_master_path, pfw_table, inventory)
character: Path to PCN masterfile.
data.table: A table with the price framework file.
data.table: A table with the PIP inventory.
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.
This source should be changed in the future.