trackJR_pbox: trackJR_pbox

Description Usage Arguments Value Examples

View source: R/trackJR_pbox.R

Description

A function to select points inside a box.

Usage

1
trackJR_pbox(data_trackJR, data_box)

Arguments

data_trackJR

The data frame with column "x" and "y" generated by the trackJR function.

data_box

The box coordinates generated by the [trackJR_box] to determine the point inside the box.

Value

a subset of the [data_trackJR] inside the box.

Examples

1
2
3
4
5
#' #'mypathDirandFile<-"C:/Users/test/vid.mp4"
dataT<-trackJR(mypathDirandFile)
graf<-trackJR_ggplot(mypathDirandFile,dataT)
trackJR_box(graf,"box1")
estimuli<-trackJR_pbox(dataT,box1)

Gdlv/trackJR documentation built on June 24, 2021, 2:06 p.m.