Description Usage Arguments Value Note Author(s) See Also
This function takes a matrix, and for a given column and index, returns a matrix of different unique values for each.
1 | compute.sums(x, var, index)
|
|
=the input matrix |
|
= |
|
res
A = matrix(c(2, 4, 3, 1, 5, 7,2,4,7,2,5,6,1,2,3,5,6,7), ncol=3, byrow = TRUE) compute.sums(A,"a",1) = for the unique values of first column, var1= corresponding value in col "a", sums of corresponding values in column a compute.sums(A,"a",2) = for the unique values of second column, var1= corresponding value in col "a", Freq = sums of corresponding values in column a
unknown, <unknown>@dfo-mpo.gc.ca
Other poorly documented: A
,
applyMean
, applySum
,
break.list
, by2
,
colour.scale
,
convert.graphics.format
,
convert2factor
, dim_list
,
duplicates.toremove
,
infinite2NA
, na.zero
,
nearest.sorted.angles
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.