as.source | R Documentation |
Returns an entire miniMeta analysis in an R source code format. This provides a basis for further processing the results exported from miniMeta, using R code, in order to perform more elaborate or more specific analyses.
as.source(x)
x |
An object of class |
A character vector of length one, containing R code that
loads the data, runs the meta-analysis, and plots a forest plot.
You can save this in a text file using writeLines
.
fname <- tempfile("my_analysis", fileext = ".R")
fname
# Writes the miniMeta analysis to an R script
writeLines(as.source(example_miniMeta_rct), fname)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.