| col.write {rPraat} | R Documentation |
col.write
Description
Saves Collection of objects to a file (in UTF-8 encoding). col is list of objects, each item col[[i]] must contain class(col[[i]])["type"] ("TextGrid", "PitchTier", "IntensityTier", "Pitch 1", or "Formant 2") and class(col[[i]])["name"] (name of the object) parameters set.
These parameters can be created easily using "as.something()" functions: as.tg(), as.pt(), as.it(), as.pitch(), as.formant()
Usage
col.write(col, fileNameCollection, format = "short")
Arguments
col |
Collection object = list of objects ( |
fileNameCollection |
file name to be created |
format |
Output file format ( |
Details
Sound objects in col.read() and col.write() are not supported at this moment because they would occupy too much disc space in text format.
See Also
Examples
## Not run:
col <- list(as.tg(tg.sample(), "My textgrid"), as.pt(pt.sample(), "My PitchTier 1"),
as.pt(pt.Hz2ST(pt.sample()), "My PitchTier 2"), as.it(it.sample(), "My IntensityTier"),
as.pitch(pitch.sample(), "My Pitch"), as.formant(formant.sample(), "My Formant"))
col.write(col, "my_collection.Collection")
## End(Not run)