Learn R Programming

pointblank (version 0.6.0)

get_informant_report: Get a table information report from an informant object

Description

We can get a table information report from an informant object that's generated by the create_informant() function. The report is provided as a gt based display table. The amount of information shown depends on the extent of that added via the use of the info_*() functions or through direct editing of a pointblank YAML file (an informant can be written to pointblank YAML with yaml_write(informant = <informant>, ...)).

Usage

get_informant_report(informant, size = "standard", lang = NULL, locale = NULL)

Arguments

informant

An informant object of class ptblank_informant.

size

The size of the display table, which can be either "standard" (the default, with a width of 875px) or "small" (width of 575px).

lang

The language to use for the information report (a summary table that provides the validation plan and the results from the interrogation. By default, NULL will create English ("en") text. Other options include French ("fr"), German ("de"), Italian ("it"), Spanish ("es"), Portuguese, ("pt"), Chinese ("zh"), and Russian ("ru"). This lang option will override any previously set lang value (e.g., by the create_agent() call).

locale

An optional locale ID to use for formatting values in the information report summary table according the locale's rules. Examples include "en_US" for English (United States) and "fr_FR" for French (France); more simply, this can be a language identifier without a country designation, like "es" for Spanish (Spain, same as "es_ES"). This locale option will override any previously set locale value (e.g., by the create_agent() call).

Value

A gt table object.

Function ID

6-2

See Also

Other Incorporate and Report: incorporate()

Examples

Run this code
# NOT RUN {
# Generate an informant object using
# the `small_table` dataset
informant <- create_informant(small_table)

# This function creates some information
# without any extra help by profiling
# the supplied table object; it adds
# the sections 'table' and columns' and
# we can print the object to see the
# table information report

# Alternatively, we can get the same report
# by using `get_informant_report()`
report <- get_informant_report(informant)
class(report)

# }

Run the code above in your browser using DataLab