powered by
Renames the class(formant)["name"] attribute and sets class(formant)["type"] <- "Formant 2" (if it is not already set)
class(formant)["name"]
class(formant)["type"] <- "Formant 2"
as.formant(formant, name = "")
Formant 2 object
New name
# NOT RUN { class(formant.sample()) class(as.formant(formant.sample(), name = "New Name")) # }
Run the code above in your browser using DataLab