mergeTables: Merge 1-D Tables

mergeTablesR Documentation

Merge 1-D Tables

Description

Merge two 1-D tables of counts

Usage

mergeTables(t1, t2)
mergeIntegerTables(t1, t2)

Arguments

t1, t2

named vectors of counts, as from base::table

Details

These functions combine tabular data. The 'Integer' form requires that the names be interpretable as integer values.

Value

a named vector of class 'table', where the named elements are the union of the names of the two input tables, and their values are the sum of counts.


robertdouglasmorrison/DuffyTools documentation built on April 16, 2024, 6:31 a.m.