as.tabfreq: tabfreq constructor

Description Usage Arguments Value Author(s) See Also Examples

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

1
2
3
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 h.haned@nfi.minvenj.nl

See Also

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

Examples

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

forensim documentation built on May 2, 2019, 11:09 a.m.