| report_op_docx | R Documentation | 
Create a DOCX report document containing RAM-OP survey results
report_op_docx(
  estimates,
  svy,
  indicators = c("demo", "food", "hunger", "disability", "adl", "mental", "dementia",
    "health", "income", "wash", "anthro", "oedema", "screening", "visual", "misc"),
  filename = paste(tempdir(), "ramOPreport", sep = "/"),
  title = "RAM-OP Report",
  view = FALSE
)
| estimates | A data.frame of RAM-OP results produced by  | 
| svy | A data.frame collected using the standard RAM-OP questionnaire | 
| indicators | A character vector of indicator names | 
| filename | Filename for output document. Can be specified as a path to a
specific directory where to output report document. Defaults to a path to
a temporary directory and a filename  | 
| title | Title of report | 
| view | Logical. Open report in current environment? Default is FALSE. | 
An DOCX in the working directory or if filename is a path, to a specified directory.
Ernest Guevarra
classicResults <- estimate_classic(
  x = create_op(testSVY), w = testPSU, replicates = 9
)
probitResults <- estimate_probit(
  x = create_op(testSVY), w = testPSU, replicates = 9
)
resultsDF <- merge_op(x = classicResults, y = probitResults)
if (rmarkdown::pandoc_version() >= numeric_version("1.12.3")) {
  report_op_docx(
    svy = testSVY, estimates = resultsDF, indicators = "mental",
    filename = paste(tempdir(), "report", sep = "/")
  )
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.