removeDyads: Remove data for specified dyads from a dataframe

Description Usage Arguments Value

Description

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

Usage

1
removeDyads(basedata, dyads, dyadID)

Arguments

basedata

A dataframe.

dyads

A vector of dyad IDs to remove.

dyadID

The variable in the dataframe specifying dyad ID; should be in the form dataframe_name$variable_name (e.g., data$couple).

Value

A dataframe with the data for the specified dyads removed.


ebmtnprof/qid documentation built on May 13, 2019, 6:08 p.m.