install.packages("remotes") remotes::install_github("rejustify/r-package") library(rejustify)
setCurl() register(token = "YOUR_TOKEN", email = "YOUR_EMAIL")
df <- data.frame(country = c('AT', 'BE', 'BG', 'HR', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK'), education_SDG = NA, check.names = FALSE, stringsAsFactors = FALSE)
st <- analyze(df)
st <- adjust(st, column = 2, items = list("class" = "general", "feature" = NA, "provider" = "Eurostat", "table" = "edat_lfs_9911"))
rdf <- fill(df, st) vis(rdf)
def <- adjust(rdf$default, column = 2, items = list("Sex" = "M", "Country of citizenship" = "NAT", "International Standard Classification of Education (ISCED 2011)" = "ED5-8", "Age class" = "Y30-34")) rdf <- fill(df, st, default = def)