Combine columns in a matrix-like object to create a new data set using the first non-zero value.
1 2 3
object that may be coerced to a matrix
list in which each component is a vector of subscripts for columns to be pooled
other arguments (not used currently)
The first element of
columns defines the columns of
for the first new column, the second for the second new column etc.
This is a generic method. More useful methods exist for
A matrix with number of columns equal to
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.