tidy2mat: Covert tidy data organization to matrix

Description Usage Arguments Details Value Author(s)

View source: R/tidy2mat.R

Description

Covert data organized by row (one observation per row) to a matrix where each unique group combination is summarized by the sum of its observations

Usage

1
tidy2mat(g1, g2, obs)

Arguments

g1

grouping factor 1

g2

grouping factor 2

obs

the observed values to sum

Details

See description

Value

Numeric matrix with each cell the sum of observations belonging to g1 = i and g2 = j

Author(s)

Andy Rominger <ajrominger@gmail.com>


ajrominger/socorro documentation built on Jan. 3, 2020, 6:25 a.m.