View source: R/write_cleaning_doc.R
| write_cleaning_doc | R Documentation |
Generates a Word document summarising the preprocessing transformations
applied by ternP. Only sections for triggered transformations
are written; if the data required no preprocessing, a single sentence
stating that is produced instead. The document can be attached to a
data-management log or supplemental materials.
write_cleaning_doc(result, filename = "cleaning_summary.docx")
result |
A |
filename |
Output file path ending in |
Invisibly returns the path to the written Word file.
ternP, write_methods_doc
path <- system.file("extdata/csv", "tern_colon_messy.csv",
package = "TernTables")
raw <- read.csv(path, stringsAsFactors = FALSE)
result <- ternP(raw)
write_cleaning_doc(result, filename = file.path(tempdir(), "cleaning_summary.docx"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.