removeDyads: Remove data for specified dyads from a dataframe

Description Usage Arguments Value Examples

Description

Useful for cleaning data if some dyads have extensive missing or otherwise problematic data.

Usage

1
removeDyads(basedata, dyads, dyadId)

Arguments

basedata

A user provided dataframe.

dyads

A vector of dyad IDs to remove.

dyadId

The variable in the dataframe specifying dyad ID.

Value

A dataframe with the data for the specified dyads removed.

Examples

1
2
3
data <- rties_ExampleDataShort
dyads <- c(3, 12)
newData <- removeDyads(basedata=data, dyads=dyads, dyadId="couple")

rties documentation built on July 2, 2020, 4:11 a.m.