write_table | R Documentation |
Function to write a table into xml format in the correct directory, and edit TableofTables
write_table(
X,
number = cctu_env$number,
heading = NULL,
na_to_empty = getOption("cctu_na_to_empty", default = FALSE),
clean_up = TRUE,
directory = file.path("Output", "Core"),
verbose = options()$verbose,
footnote = NULL
)
X |
the data.frame or table to be saved in xml format |
number |
the number used to as a suffix in the output filename, and to link to TableofTables. Default is to use the value in the cctu_env package environment that is set within |
heading |
character vector of column titles. Defaults to the colnames of X |
na_to_empty |
logical, if true then any NA values will be written as empty strings. Defaults to false. |
clean_up |
logical to invoke the |
directory |
where to save the figures within path or current working directory |
verbose |
logical to print information on changes to the global environment or external files. Defaults to options()$verbose. |
footnote |
character vector, can be used to add footnotes. |
Variable names and values will be replace by variable labels and value labels respectively if available before writing the data.
Use options(cctu_na_to_empty = TRUE)
to write NA values will be written as empty strings globally.
writes an xml version of the input data to file table_number.xml . Edits the TableofTables object with the calling programe. No return object.
write_ggplot
detect_invalid_utf8
remove_invalid_utf8
lab2val
var_lab
val_lab
apply_macro_dict
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.