changepop: Function to change population-related information in forensim...

View source: R/changepop.R

changepopR Documentation

Function to change population-related information in forensim objects

Description

The changepop function changes population-related information in tabfreq, simugeno and simumix objects

Usage

changepop(obj, oldpop, newpop)

Arguments

obj

a forensim object, either a tabfreq, a simugeno or a simumix object

oldpop

a character vector giving the population names to be changed

newpop

a character vector giving the new population names

Value

a forensim object where the slots containing population-related information have been modified

Author(s)

Hinda Haned h.haned@nfi.minvenj.nl

Examples

## Not run: 
data(strveneto)
tab1 <- simugeno(strveneto,n=100)
tab2 <- changepop(tab1,"Veneto","VENE")
tab1$pop.names
tab2$pop.names

## End(Not run)

hindantation/forensim documentation built on Oct. 8, 2022, 4:42 a.m.