as.pt: as.pt

Description Usage Arguments Value Examples

View source: R/pt.R

Description

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

Usage

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

Arguments

pt

PitchTier object

name

New name

Value

PitchTier object

Examples

1
2
class(pt.sample())
class(as.pt(pt.sample(), name = "New Name"))

rPraat documentation built on Dec. 9, 2018, 1:04 a.m.