msscount {mefa}R Documentation

Merges Two Objects of Class 'sscount'

Description

The function merges two objects of class 'sscount'.

Usage

msscount(ssc1, ssc2)

Arguments

ssc1 an object of class 'sscount'.
ssc2 an object of class 'sscount'.

Value

A result is an object of class 'sscount'.

Note

Merge operation terminates with error message if zero count identifier of one 'sscount' object is a valid species identifier for the other 'sscount' object, and vica versa.

Author(s)

Peter Solymos, Solymos.Peter@aotk.szie.hu, http://www.univet.hu/users/psolymos/personal/

See Also

sscount, xcount

Examples

ss <- data.frame(
cbind(
c("sample1","sample1","sample2","sample2","sample3","sample4"),
c("species1","species1","species1","species2","species3","zero.count"),
c("male","female","male","female","male","male")
),
c(1, 2, 10, 3, 4, 1)
)
colnames(ss) <- c("sample.id", "species.id", "gender", "catch")

ss2 <- ss[1:5,]

ssc1 <- sscount(ss, zc="zero.count")
ssc2 <- sscount(ss2)

msscount(ssc1, ssc1)
msscount(ssc1, ssc2)
msscount(ssc2, ssc2)

[Package mefa version 1.1-0 Index]