spread_array: Spread data.frame

Description Usage Arguments Details Value See Also Examples

View source: R/array_munging.R

Description

Spread data.frame

Usage

1

Arguments

data

a dataframe with integer indexed positions in an array

value

data to be spread into the array

...

unquoted dimnames used to build array

Details

make sure all colnames supplied to ... are consecutive interger indexed positions

Value

multidimensional array

See Also

gather_array

Examples

1
2
3
4
a <- array(1:100, dim=c(10, 5, 2))
ga <- gather_array(a, sequence, A, B, C)
head(ga)
spread_array(ga, sequence, A, B, C)

jsilve24/driver documentation built on Jan. 30, 2022, 12:07 p.m.