Coerce a grass_card to a tidy data.frame (panel; per_rater appended on divergent)
Source:R/as-data-frame.R
as.data.frame.grass_card.RdReturns the panel of observed coefficients with surface position metadata
as a data.frame. The primary coefficient is flagged via the is_primary
column. When the cross-coefficient flag is divergent and the per-rater
latent-class table is populated, returns a list c(panel = ..., per_rater = ...)
so tidy consumers can pivot the per-rater rows separately.
Usage
# S3 method for class 'grass_card'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)