census: Cross tabulate a consensus vector

Description Usage Arguments Value Examples

Description

Cross tabulate the population composition

Usage

1
census(v, pop.def)

Arguments

v

a consensus vector of population classifications.

pop.def

A population (rows) definition dataframe with parameters (columns) for gating and clustersing.

Value

a one row, cross-tabulated dataframe of counts with one column for each population specified by the rows in the pop.def dataframe. Zeros are filled in for absent populations.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
opp.file.path <- system.file("extdata","seaflow_cruise","2011_001", "1.evt.opp", 
				package="flowPhyto")
pop.file.path <- system.file("extdata","seaflow_cruise","pop.def.tab", 
				package="flowPhyto")

opp <- readSeaflow(opp.file.path)
def <- readPopDef(pop.file.path)
pop <- classify(x=opp, pop.def= def)

census(v=pop$pop, pop.def=def)

armbrustlab/flowPhyto documentation built on May 10, 2019, 1:40 p.m.