proFreq: Observed profile frequencies

Description Usage Arguments Value Author(s) See Also Examples

View source: R/proFreq.R

Description

The function computes profile frequencies, by counting the number of times a profile appears in the population.

Usage

1
proFreq(profiles, population)

Arguments

profiles

an object of S3 class wprof.

population

a matrix or data.frame representing a set of observations with variables (the same contained in prof) by columns.

Value

An object of class wprof with the same profiles of the argument but with different frequencies.

Author(s)

Alberto Arcagni

See Also

popelem

Examples

1
2
3
4
5
6
vl <- c(2, 3, 2)
prf <- var2prof(varlen = vl)
pop <- matrix(c(2, 1, 1, 1, 2, 1, 2, 3, 1), 3, 3)
rownames(pop) <- LETTERS[1:3]

proFreq(profiles = prf, population = pop)

parsec documentation built on May 20, 2017, 5:15 a.m.

Search within the parsec package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.