di: Calculate Dominance Index over time

Description Usage Arguments Value Examples

View source: R/di.R

Description

Calculate Dominance Index over time

Usage

1
di(df, plot = FALSE, type = "ds")

Arguments

df

a dataframe containing three columns the first column being the time, the second column the winner and the second column being the loser

plot

If equals TRUE will plot dominance over time

type

If lc will calculate the win proportion dominance index used by Lindquist & Chase (2009). If ds will use David's Scores as the dominance index.

Value

a dataframe with the dominance index - a numeric value between 0 and 1 for each animal at each timepoint

Examples

1
2
di(chickens[,-2], type="ds")
di(chickens[,-2], type="lc", plot=TRUE)

jalapic/hierformR documentation built on May 18, 2019, 11:18 a.m.