Description Usage Arguments Details Value Functions Example use case
View source: R/non-dplyr_verbs.R
Similar to filter
, but does not filter on each table seperately, but
filters frames for which all conditions from seperate tables apply. That is,
one can filter frames based on a variable in e.g. the tr
table and
tr
, soc
and group
will be filtered for the frames where
that condition is TRUE
.
1 2 3 | find_sections(tracks, ..., tol = 1, pad = 0, add_times = TRUE)
find_sections_(tracks, ..., tol = 1, pad = 0, add_times = TRUE, .dots)
|
tracks |
A tracks object. |
... |
Conditions. |
tol |
Combine sequences that are |
pad |
Add padding of this many frames around each section. This allows for capturing context around sections of interest. |
add_times |
When |
.dots |
Used to work around non-standard evaluation. See vignette("nse") for details. |
It returns a list with tracks tables as well as a summary table of sequences.
The first is named tracks
, tables are grouped appropriately. The
second list enty is named sections
and provides an overview of the
track sections that were found. It is grouped by trial, with a start
,
stop
and length
column.
The function supports a tolerance level which allows for combining sequences that are close together.
Any variables used as conditions will be looked up in the tr
,
soc
and group
tables and applied when present.
A tbl_df.
find_sections_
: Retrieve the timestamps for track section based on
conditions.
If one wants to select all sequences of frames where animals are chasing each other (to plot them, for example), one could filter for a high mean speed of the pair, and a small pairwise distance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.