Learn R Programming

rPraat (version 1.3.2-1)

as.snd: as.snd

Description

Renames the class(snd)["name"] attribute and sets class(snd)["type"] <- "Sound" (if it is not already set)

Usage

as.snd(snd, name = "")

Arguments

snd

snd object

name

New name

Value

snd object

Details

At least, $sig and $fs members must be present in snd list.

If not present, it calculates $t, $nChannels, $nBits (default: 16), $nSamples, and $duration members of snd list

Examples

Run this code
# NOT RUN {
class(snd.sample())
class(as.snd(snd.sample(), name = "New Name"))
# }

Run the code above in your browser using DataLab