Learn R Programming

emuR (version 2.4.0)

frames.time: Find the time and position of a data element.

Description

Finds the time and position of a data element.

Usage

frames.time(dataset, datanum)

Value

The segment number which contains the element datanum of dataset$data.

Arguments

dataset

A dataset returned by track or frames.

datanum

An integer, an index into the data component of dataset.

Details

The dataset returned from track or frames consists of a matrix of data (the data component) and two index components (index and ftime). The data for all segments is concatenated together in $data. This function can be used to find out which segment a particular row of $data corresponds to.

See Also

track, frames