Learn R Programming

rPraat (version 1.3.2-1)

as.pitch: as.pitch

Description

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

Usage

as.pitch(pitch, name = "")

Arguments

pitch

Pitch 1 object

name

New name

Value

Pitch 1 object

Examples

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

Run the code above in your browser using DataLab