removeDyads {rties} | R Documentation |
Useful for cleaning data if some dyads have extensive missing or otherwise problematic data.
removeDyads(basedata, dyads, dyadId)
basedata |
A user provided dataframe. |
dyads |
A vector of dyad IDs to remove. |
dyadId |
The variable in the dataframe specifying dyad ID. |
A dataframe with the data for the specified dyads removed.
data <- rties_ExampleDataShort
dyads <- c(3, 12)
newData <- removeDyads(basedata=data, dyads=dyads, dyadId="couple")