Skip to contents

Reshaping Annex Stats Objects

Usage

annex_stats_reshape(x, format = NULL)

Arguments

x

object of class annex_stats as returned by annex_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).

See also

annex_stats

Author

Reto Stauffer