Learn R Programming

MoBPS (version 1.13.1)

get.snapshot: Derive snapshot of selected individuals

Description

Function to derive snapshot of genotyping/phenotyping state of selected individuals

Usage

get.snapshot(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  id = NULL,
  phenotype.data = FALSE,
  gain.data = FALSE,
  digits = 3,
  use.all.copy = TRUE,
  time.diff = NA
)

Value

Snapshot-matrix

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)

id

Individual IDs to search/collect in the database

phenotype.data

Set to TRUE to include information of number of phenotypes generated

gain.data

Set to TRUE to add information on changes in genetic level between cohorts (default: FALSE)

digits

Number of digits provided for the gain.data output (default: 3)

use.all.copy

Set to TRUE to extract phenotyping

time.diff

Set to a target time interval to receive information between transitions to other cohorts (default: NA)

Examples

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

Run the code above in your browser using DataLab