IDpartner {Families} | R Documentation |
ID of partner of ego
Description
Retrieves ID of partners of vector of egos #'
Usage
IDpartner(idego, d = NULL)
Arguments
idego |
vector of IDs of egos. |
d |
Name of database. If d is missing, the dataset dLH in the global environment (R workspace) is used. If no dLH in the global environment, the database dLH distributed with the Families package is used. |
Value
Vector of IDs of partners
Examples
# Load the data
data(dLH,package = "Families")
# Get ID of partner
IDpartner(idego=1,d=dLH)
IDpartner(idego=c(4,9,NA,30),d=dLH)
[Package Families version 2.0.2 Index]