# get example data from the opendataformat package
df <- get(data("data_odf"))
# view documentation about the dataset in the language that is currently set
docu_odf(df)
# view information from a selected variable in language "en"
docu_odf(df$bap87, languages = "en")
# view dataset information for all available languages
docu_odf(df, languages = "all")
# print information to the R console
docu_odf(df$bap87, style = "print")
# print information to the R viewer
docu_odf(df$bap87, style = "viewer")
# Since the label for language de is missing, in this case the
# english label will be displayed additionally.
attributes(df$bap87)["label_de"] <- ""
docu_odf(df$bap87, languages = "de", replace_missing_language = TRUE)
Run the code above in your browser using DataLab