setInvalidOutsideInterval-methods: Set position data outside time intervals to NA

Description Usage Arguments Value

Description

The slots x, y, hd, speed, lin and dir are affected. The intervals are in sample values of the electrophysiological data

Usage

1
2
3
4
setInvalidOutsideInterval(pt, s, e)

## S4 method for signature 'Positrack'
setInvalidOutsideInterval(pt, s, e = "")

Arguments

pt

Positrack object

s

Vector or matrix, If matrix, then should have 2 columns, for beginning and end of intervals. If vector, then it is the beginning of intervals.

e

Vector, end of the intervals. Not used if s is a matrix

Value

Positrack object with only valid value within the intervals.


kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.