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