at_s: Get rats sample number at given time

View source: R/classes_rats.R

at_sR Documentation

Get rats sample number at given time

Description

Get rats sample number at given time

Usage

at_s(x, time)

Arguments

x

a rats object

time

a time in a format accepted by timeMaster

Details

this can be useful e.g. after windowing

Value

the index of the vector x where x$x matches time

Examples

at_s(rats(500:100, frequency=10), time = 12.378)

kleinbub/rIP documentation built on Dec. 21, 2024, 9:15 a.m.