View source: R/as.data.frame.R
| as.data.frame.estimate_contrasts | R Documentation |
as.data.frame() method for modelbased objects. Can be used to return
a "raw" data frame without attributes and with standardized column names.
By default, the original column names are preserved, to avoid unexpected
changes, but this can be changed with the preserve_names argument.
## S3 method for class 'estimate_contrasts'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
...,
stringsAsFactors = FALSE,
use_responsename = FALSE,
preserve_names = TRUE
)
x |
An object returned by the different |
row.names |
|
optional |
logical. If |
... |
Arguments passed to the |
stringsAsFactors |
logical: should the character vector be converted to a factor? |
use_responsename |
Logical, if |
preserve_names |
Logical, if |
A data frame.
model <- lm(Petal.Length ~ Species, data = iris)
out <- estimate_means(model, "Species")
# default
print(out)
as.data.frame(out)
as.data.frame(out, preserve_names = FALSE)
as.data.frame(out, preserve_names = FALSE, use_responsename = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.