join_tr_to_soc: Add select variables from the tr table to the soc table.

Description Usage Arguments Value Examples

View source: R/add_to_soc.R

Description

Use this function if you need access to track variables while computing social variables. Each variable will be split into two columns, for fish1 and fish2, with the numbers 1 and 2 amended. E.g. joining X and Y will generate four new columns in soc, X1, X2, Y1, Y2.

Usage

1

Arguments

tracks

A tracks object.

...

Which variables to join.

Value

A tracks object.

Examples

1
2
3
4
5
Guppies <- guppies %>%
  as_tracks(30, 1080) %>%
  expand_tracks()

join_tr_to_soc(Guppies, X, Y)

Ax3man/trackr documentation built on Oct. 8, 2019, 10:53 p.m.