add_missing_xmart_rows: Add missing rows for xMart upload

View source: R/utils_wrangling.R

add_missing_xmart_rowsR Documentation

Add missing rows for xMart upload

Description

Compares the rows in a given data frame to the existing xMart data. If the data frame is missing any combinations of c(iso3, ind, year) found in xMart, it appends these rows to the data frame,with NA values for ⁠value, upper, lower, source, type⁠ and other_detail.

Usage

add_missing_xmart_rows(df, billion, ind_code, projected)

Arguments

df

data frame

billion

the Billion that the indicator belongs to

ind_code

the GPW13 code for the indicator(s)

projected

boolean value indicating where the indicator has already been projected by the technical programme

Value

a data frame

See Also

Wrangle data functions get_data_lake_name(), get_whdh_path(), has_xmart_cols(), save_gho_backup_to_whdh(), save_wrangled_output(), wrangle_gho_data(), wrangle_gho_rural_urban_data(), wrangle_unsd_data(), xmart_col_types(), xmart_cols()


gpw13/billionaiRe documentation built on Sept. 27, 2024, 10:05 p.m.