Reshaping Annex Stats Objects
Arguments
- x
object of class
annex_stats
as returned byannex_stats()
.- format
NULL
by default or one of"long"
or"wide"
(see Details).
Value
Returns a reshaped version of the input. If the
Object provided on x
inherits annex_stats_wide
(wide format)
the long format will be returned and vice versa if format = NULL
.
If the format is specified as either "long"
or "wide"
the long or wide format will be returned (possibly an unmodified version of the input if the input is already in the desired format).