simple_ratio: Simple Ratio Index

Description Usage Arguments Examples

View source: R/simple_ratio.R

Description

This function calculates the simple ratio index for data in linear format

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
simple_ratio(
  sightings = sightings,
  group_variable = group_variable,
  dates = dates,
  IDs = IDs,
  diag = FALSE,
  symmetric = TRUE,
  mask = NULL,
  assocInd = "SRI"
)

Arguments

sightings

a dataframe in linear format, i.e., one row per individual per observation

group_variable

a unique group identifier

dates

dates

IDs

individual IDs

diag

logical, should the diagonal be included (default FALSE)

symmetric

logical, should a symmetric matrix be returned (default TRUE)

mask

an availability matrix where rows are individuals and columns are sighting dates, cells should be 1 for available or NA if not

assocInd

whether the association index "SRI", the number of sightings together "X", or total "XY" should be returned

Examples

1

vjf2/SocGen documentation built on April 24, 2021, 10:59 a.m.