timegap: Compute average time gap (time inverval) between ego-alter...

Description Usage Arguments Value

View source: R/timegap.r

Description

Compute average time gap (time inverval) between ego-alter bites

Usage

1
2
3
4
5
6
7
timegap(data, ...)

## S3 method for class 'data.frame'
timegap(data, ...)

## S3 method for class 'matrix'
timegap(data, ...)

Arguments

data

A data.frame or numeric matrix. The first column should be time and the second column the ids.

...

Further arguments passed to the method.

Value

A vector of length length(unique(data[,2])) with average time between bites of i->j and j->i


gvegayon/biteme documentation built on June 16, 2021, 5:30 p.m.