Learn R Programming

rPraat (version 1.3.2-1)

as.pt: as.pt

Description

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

Usage

as.pt(pt, name = "")

Arguments

pt

PitchTier object

name

New name

Value

PitchTier object

Examples

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

Run the code above in your browser using DataLab