compute.sums: compute.sums

Description Usage Arguments Value Note Author(s) See Also

Description

This function takes a matrix, and for a given column and index, returns a matrix of different unique values for each.

Usage

1
compute.sums(x, var, index)

Arguments

x

=the input matrix

var

=

index

Value

res

Note

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

Author(s)

unknown, <unknown>@dfo-mpo.gc.ca

See Also

Other poorly documented: A, applyMean, applySum, break.list, by2, colour.scale, convert.graphics.format, convert2factor, dim_list, duplicates.toremove, na.zero, nearest.sorted.angles


AtlanticR/bio.utilities documentation built on June 21, 2020, 7:43 p.m.