get_dyadic_subset: Obtain dyadic interaction subsets for the animal's year of...

View source: R/sci_unscaled.R

get_dyadic_subsetR Documentation

Obtain dyadic interaction subsets for the animal's year of life

Description

Obtain dyadic interaction subsets for the animal's year of life

Usage

get_dyadic_subset(
  df,
  biograph_l,
  members_l,
  focals_l,
  females_l,
  interactions_l,
  min_cores_days,
  within_grp,
  directional
)

Arguments

df

One row individual-year-of-life data

biograph_l

A local copy of the biograph table

members_l

A subset of members table produced by the function 'subset_members'

focals_l

A subset of focals produced by the function 'subset_focals'

females_l

A subset of female counts produced by the function 'subset_females'

interactions_l

A subset of interaction data

min_cores_days

The minimum number of coresidence days needed for dyad to be included. Defaults to 60 days.

within_grp

Logical value indicating whether regressions should be fit relative to dyads in entire population (default) or to dyads within-group

directional

Logical value indicating whether to preserve directionality

Value

The input row with an additional list column containing the subset


lycium0605/SHfunction documentation built on Feb. 5, 2023, 11:14 a.m.