postunstack: Unstack Vectors into a Data Frame

View source: R/postunstack.R

postunstackR Documentation

Unstack Vectors into a Data Frame

Description

Padding an unstacked data frame with missing values to ensure equal length vectors in resulting list. This list is then coerced into a data frame for ease of producing tables.

Usage

postunstack(x, form, ...)

Arguments

x

A list or data frame to be stacked or unstacked.

form

a two-sided formula whose left side evaluates to the vector to be unstacked and whose right side evaluates to the indicator of the groups to create. Defaults to 'formula(x)' in the data frame method for 'unstack'.

...

further arguments passed to or from other methods.

Value

a data frame of columns according to the formula 'form'. If the columns do not all have the same length, the resulting list is coerced to a data frame by padding with missing values.

Author(s)

W. John Braun

See Also

unstack


MPV documentation built on April 14, 2025, 9:07 a.m.

Related to postunstack in MPV...