Description Usage Arguments Details Value See Also Examples
Read a table from file and create a transcription
object out of it.
1 2 3 4 5 6 | read.transcription(
file,
col.grapheme = "GRAPHEME",
col.meta = "META",
col.value = "VALUE"
)
|
file |
[character] Path to the data file. |
col.grapheme |
[character] Name of the column with graphemes. Defaults to |
col.meta |
[character] Name of the column with the coverage of metacharacters. If empty string or NA, the column will be generated automatically. Defaults to |
col.value |
[character] Name of the column with values of graphemes. Defaults to |
The constructor for the transcription
class requires a data frame which means that the user would need to first read it from a file, and only then pass it to the constructor. This function saves this one step. In addition, it attaches the name of the file to the object, which allows for easier identification later. It is recommended to use read.transcription
instead of the raw transcription
constructor whenever possible.
[transcription] A transcription object containing the read transcription.
1 2 3 | # path to a sample transcription
fName <- system.file ("extdata", "trans-common.tsv", package="soundcorrs")
read.transcription (fName)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.