Learn R Programming

Families (version 2.0.2)

IDpartner: ID of partner of ego

Description

Retrieves ID of partners of vector of egos #'

Usage

IDpartner(idego, d = NULL)

Value

Vector of IDs of partners

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.

Examples

Run this code
# 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)  

Run the code above in your browser using DataLab