tabfreq constructor {forensim}R Documentation

tabfreq constructor

Description

Constructor for tabfreq objects.
The function tabfreq creates a tabfreq object from a data frame or a matrix giving allele frequencies for a single population in the Journal of Forensic Sciences (JFS) format for population genetic data. Whene multiple populations are considered, data shall be given as a list, where each element is either a matrix or a data frame in the JFS format, and the populations names must be specified.

The function as.tabfreq is an alias for the tabfreq function.

is.tabfreq tests if an object is a valid tabfreq object.

Note: to get the manpage about tabfreq, please type 'class ? tabfreq'.

Usage

tabfreq(tab,pop.names=NULL)
as.tabfreq(tab,pop.names=NULL)
is.tabfreq(x)

Arguments

tab either a matrix or a data.frame of markers allele frequencies given in the Journal of Forensic Sciences format for population genetic data
pop.names (optional) a factor giving the populations names. For a single population in tab, default is set to NULL.
x an object

Value

For tabfreq and as.tabfreq, a tabfreq object. For is.tabfreq, a logical.

Author(s)

Hinda Haned haned@biomserv.univ-lyon1.fr

See Also

"tabfreq", simugeno for creating a simugeno object from a tabfreq object.

Examples

data(Tu)
tabfreq(Tu,pop.names=factor("Tu"))


[Package forensim version 1.1-1 Index]