Learn R Programming

rPraat (version 1.3.2-1)

as.formant: as.formant

Description

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

Usage

as.formant(formant, name = "")

Arguments

formant

Formant 2 object

name

New name

Value

Formant 2 object

Examples

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

Run the code above in your browser using DataLab