Learn R Programming

VirtualPop (version 2.0.2)

PartnerSearch: Simple Partner Search Simulation

Description

In this simple model, a partner is an individual of a different sex selected at random among members of the same generation. The function is called by GetGenerations().

Usage

PartnerSearch(dLH)

Value

dLH

Updated version of database (dLH), which includes, for each individual without a partner and able to find a partner, the ID of the partner.

Arguments

dLH

Database

Examples

Run this code

utils::data(dLH,package="VirtualPop")
d <- VirtualPop::PartnerSearch(dLH=dLH)

Run the code above in your browser using DataLab