Learn R Programming

ibdsim2 (version 2.2.0)

extractIds: Extract ID labels from simulation output

Description

Extract ID labels from simulation output

Usage

extractIds(sim)

Value

A character vector

Arguments

sim

Output from ibdsim()

Examples

Run this code
s = ibdsim(nuclearPed(2), N=1, ids = 3:4)
stopifnot(all(extractIds(s) == c("3", "4")))

Run the code above in your browser using DataLab