as_sample_int: Convert a time point into a sample.

View source: R/time_sample.R

as_sample_intR Documentation

Convert a time point into a sample.

Description

Convert a time point into a sample.

Usage

as_sample_int(x, ...)

## S3 method for class 'numeric'
as_sample_int(x, .sampling_rate = NULL, .unit = "s", ...)

Arguments

x

A vector of numeric values.

...

Not in use.

.sampling_rate

Sampling rate in Hz

.unit

"seconds" (or "s"), "milliseconds" (or "ms"), or "samples"

Value

A sample_int object.


bnicenboim/eeguana documentation built on March 16, 2024, 7:21 a.m.