Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

audioSample-methods

Audio sample class methods


Description

audioSample methods behave in the same way as the underlying methods of numeric vectors and matrices except that they preserve the attributes and class of the objects.

Usage

## S3 method for class 'audioSample'
x$name
  ## S3 replacement method for class 'audioSample'
x$name <- value
  ## S3 method for class 'audioSample'
x[..., drop = FALSE]
  ## S3 method for class 'audioSample'
as.Sample(x, ...) 
  ## S3 method for class 'audioSample'
print(x, ...)

Arguments

x

sample object

name

name of the attribute to get/set

value

value to set

drop

see `[` operator documentation

...

parameters passed to the object-specific method

Examples

x <- audioSample(sin(1:8000/10), 8000)
x$rate
x[1:10]

audio

Audio Interface for R

v0.1-10
MIT + file LICENSE
Authors
Simon Urbanek <simon.urbanek@r-project.org>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.