Skip to contents

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