calc_n_events: Number of Events (Internal)

View source: R/events_N_duration.R

calc_n_eventsR Documentation

Number of Events (Internal)

Description

This function calculates the number of events of collective motion per set, given by events_n.

Usage

calc_n_events(data)

Arguments

data

The dataframe of one set (splitted by the events_n function) with a keep column.

Value

An integer corresponding to the number of events of collective motion (sequences of keep == TRUE).

Author(s)

Marina Papadopoulou m.papadopoulou.rug@gmail.com


swaRmverse documentation built on Oct. 10, 2024, 5:08 p.m.