Learn R Programming

MoBPS (version 1.13.1)

get.pedigree_old: Derive pedigree

Description

Derive pedigree for selected individuals

Usage

get.pedigree_old(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  founder.zero = TRUE,
  raw = FALSE,
  use.id = TRUE,
  id = NULL,
  use.first.copy = FALSE,
  include.error = FALSE,
  depth = 1
)

Value

Pedigree-file for in gen/database/cohorts selected individuals

Arguments

population

Population list

database

Groups of individuals to consider for the export

gen

Quick-insert for database (vector of all generations to export)

cohorts

Quick-insert for database (vector of names of cohorts to export)

founder.zero

Parents of founders are displayed as "0" (default: TRUE)

raw

Set to TRUE to not convert numbers into Sex etc.

use.id

Set to TRUE to extract individual IDs

id

Replaced by use.id ((consistency with all other get.xxx functions))

use.first.copy

Set to TRUE to use database-position of the first copy of an individual (default: FALSE)

include.error

Set to TRUE to include errors simulated in the pedigree

depth

Depth (1) for parents, (2) for grandparents, (3) for grandgrandparents etc.

Examples

Run this code
data(ex_pop)
get.pedigree_old(ex_pop, gen=2)

Run the code above in your browser using DataLab