df_to_eaf | R Documentation |
Convert a dataframe to Elan file .exb
df_to_eaf(df, output_file, output_dir = "", ref_file = "", mime_type = "")
df |
an R dataframe object that contains columns named 'tier', 'id', 'tier_name', 'content', 'time_start', 'time_end' and preferably also 'tier_type', 'stereotype', 'tier_ref', 'event_local_id', 'dependent_on' that are specific for eaf file |
output_file |
the name of the result .xml file |
output_dir |
the output directory for the rendered file (defalut is used if not spectified) |
ref_file |
a filepath for connected media file (not obligatory) |
mime_type |
a MIME type of connected media file (not obligatory) |
.xml file
Sergej Kudrjashov <xenomirant@gmail.com>
df <- eaf_to_df(system.file("extdata", "test.eaf", package = "phonfieldwork"))
df_to_eaf(df = df,
output_file = 'test.eaf',
ref_file = 'test.wav')
# Remove file in order to pass checks
file.remove("test.eaf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.