Learn R Programming

rPraat (version 1.3.1)

as.tg: as.tg

Description

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

Usage

as.tg(tg, name = "")

Arguments

tg

TextGrid object

name

New name

Value

TextGrid object

Examples

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

Run the code above in your browser using DataLab