Learn R Programming

rties (version 5.0.0)

removeDyads: 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

Run this code
# NOT RUN {
data <- rties_ExampleDataShort
dyads <- c(3, 12)
newData <- removeDyads(basedata=data, dyads=dyads, dyadId="couple")

# }

Run the code above in your browser using DataLab