Convert Heterogeneity Summaries to Data Frames
Source:R/summary_heterogeneity.R
as.data.frame.summary_heterogeneity.brma.RdConverts heterogeneity summaries to plain long data frames with
leading component and parameter columns. A multi-component
result can instead be returned as a named list with
format = "list".
Usage
# S3 method for class 'summary_heterogeneity.brma'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
stringsAsFactors = FALSE,
...
)
# S3 method for class 'summary_heterogeneity.brma_list'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
format = c("long", "list"),
stringsAsFactors = FALSE,
...
)Arguments
- x
a
summary_heterogeneity.brmaorsummary_heterogeneity.brma_listobject.- row.names
NULLor a character vector giving the row names for the result. Custom row names are unsupported whenformat = "list".- optional
logical; passed to the final data-frame coercion.
- stringsAsFactors
accepted for compatibility with
data.frame().- ...
unused additional arguments.
- format
for multi-component results, whether to return one
"long"data frame or a named"list"of data frames.