create_blank: Create blank file

View source: R/create_blank.R

create_blankR Documentation

Create blank file

Description

Create a file with empty data or footnotes to blank pre-existing values in DCS.

Usage

create_blank(indicator, iso3c = "all", year = "all", type = c("data", "meta"))

Arguments

indicator

character: A CETS type indicator code.

iso3c

character: ISO3 code. Defaults to 'all'.

year

numeric: Year. Defaults to 'all'.

type

character: Type, either 'data' or 'meta'.

Value

data.frame

Examples

# A specific indicator / country /year
df <- create_blank("SP.POP.TOTL",
  iso3c = "ALB", year = 2014
)

# Multiple indicators / countries / years
df <- create_blank(
  indicator = c("SP.POP.TOTL", "SH.MLR.NETS.ZS"),
  iso3c = c("ALB", "AGO"),
  year = 2014:2015
)

# All countries and years (data)
df <- create_blank("SP.POP.TOTL",
  type = "data"
)

# All countries and years (metadata)
df <- create_blank("SP.POP.TOTL",
  type = "meta"
)

worldbank/pddcs documentation built on Nov. 20, 2024, 5:41 a.m.