as.formant: as.formant

Description Usage Arguments Value Examples

View source: R/formant.R

Description

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

Usage

1
as.formant(formant, name = "")

Arguments

formant

Formant 2 object

name

New name

Value

Formant 2 object

Examples

1
2

Example output

                   type        name 
     "list" "Formant 2" "H.Formant" 
                   type        name 
     "list" "Formant 2"  "New Name" 

rPraat documentation built on Feb. 28, 2021, 1:06 a.m.