checkpresence: Title

View source: R/checkpresence.R

checkpresenceR Documentation

Title

Description

Title

Usage

checkpresence(presence, b.source = NULL, ot.source = NULL)

Arguments

presence

presence "matrix" (usually a data frame...); see createnullpresence. presence2 is only necessary if focal-nonfocal dyads are to be considered at the same time, e.g. when interested in male-male focal dyads and male-female focal-nonfocal dyads. In this case, presence2 would be the female presence data.

b.source

data frame with behavioural data

ot.source

data frame with observation time

Value

a matrix, with dates and roles (actor, etc...) at which presence and behavioural data don't match. Same for observation time data. In case both are specified, a list is returned.

Examples

## Not run: 
data(dataset3)
checkpresence(dataset3$pres, dataset3$dataseq)
checkpresence(dataset3$pres, dataset3$dataseq, dataset3$ot)

x <- datagen(no=100, ni=7, presence=c(0.8,0.4))
checkpresence(x$pres, x$dataseq, x$ot)

## End(Not run)

gobbios/socialindices documentation built on Feb. 14, 2023, 3:56 p.m.