makeTestTable | R Documentation |
This function is designed to make it easier to create unit tests for tables. It strips off attributes and flattens the structure until a list remains with dimension 1. Output is then produced which can be immediately placed in the test file.
makeTestTable(rows, print = TRUE)
rows |
A list with lists of rows (i.e., a JASP table). |
print |
Should the result be printed. |
Copy-paste ready output which may serve as the reference to test tables against.
options <- analysisOptions("BinomialTest")
options[["variables"]] <- "contBinom"
results <- runAnalysis("BinomialTest", "debug", options, view=FALSE)
makeTestTable(results[["results"]][["binomial"]][["data"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.