powered by
Useful for cleaning data if some dyads have extensive missing or otherwise problematic data.
removeDyads(basedata, dyads, dyadId)
A user provided dataframe.
A vector of dyad IDs to remove.
The variable in the dataframe specifying dyad ID.
A dataframe with the data for the specified dyads removed.
# 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