removeDyads {rties}R Documentation

Remove data for specified dyads from a dataframe

Description

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

Usage

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

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


[Package rties version 5.0.0 Index]