Learn R Programming

swaRmverse (version 0.1.1)

calc_n_events: 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)

Value

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

Arguments

data

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

Author

Marina Papadopoulou m.papadopoulou.rug@gmail.com