rebase_dims: Change the dimensions of a KinPairSimulation Object and shift...

Description Usage Arguments Value Examples

View source: R/sample_kindist.R

Description

Change the dimensions of a KinPairSimulation Object and shift kinpairs so at least one individual is within the area

Usage

1
rebase_dims(kindist, dims)

Arguments

kindist

KinPairSimulation - KinPairSimulation Class Object

dims

New site dimensions - either single number (length of side of square) or length 2 vector (lengths of sides x and y of rectangle)

Value

returns a rebased object of class KinPairSimulation with adjusted simulation dimensions

Examples

1
2
3
4
simobject <- simulate_kindist_simple()

rebase_dims(simobject, c(1, 100))
rebase_dims(simobject, 15)

kindisperse documentation built on July 28, 2021, 5:09 p.m.