View source: R/sample-covariates.R
summary.eav_covariates | R Documentation |
Sumamrizes a set of sample covariates (returned from
fetch_sample_covariates()
at different granulaities.
## S3 method for class 'eav_covariates'
summary(object, ..., expanded = FALSE, droplevels = TRUE)
object |
A sample covariate table, the likes returned from
|
expanded |
includes details (rows) for each covariate per level
(or quantile), depending on the covariates |
a tibble of summary sample covariate information with the following columns:
variable
: name of the variable
class
: class of variable (real, categorical)
nsamples
: the number of samples that have this variable defined
level
: the level (or quantile) of the covariate
(included only when expanded == TRUE
)
ninlevel
: the number of samples with this covariate value
(included only when expanded == TRUE
)
fds <- exampleFacileDataSet()
covs <- fetch_sample_covariates(fds)
smry <- summary(covs)
details <- summary(covs, expanded = TRUE)
catdeetz <- covs |>
filter(class == "categorical") |>
summary(expanded = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.