Skip to contents

This function checks for repeating dyadic observations in a data.frame, possibly considering a time dimension. It leverages fast C++ code for improved performance.

Usage

repeat_dyads_check(dyad_data, actor1, actor2, time = NULL)

Arguments

dyad_data

A data.frame containing the dyadic data.

actor1

Character string specifying the column name for actor1.

actor2

Character string specifying the column name for actor2.

time

Optional character string specifying the column name for time. If not provided, dyads are considered without regard to time.

Value

An integer count of the number of repeating dyads in the data.frame.

Author

Shahryar Minhas