Convert a dataframe to Elan file .exb
df_to_eaf(df, output_file, output_dir = "", ref_file = "", mime_type = "")
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
the name of the result .xml file
the output directory for the rendered file (defalut is used if not spectified)
a filepath for connected media file (not obligatory)
a MIME type of connected media file (not obligatory)
.xml file
df <- eaf_to_df(system.file("extdata", "test.eaf", package = "phonfieldwork"))
df_to_eaf(df = df,
output_file = 'test.eaf',
ref_file = 'test.wav')
#> Warning: Tier stereotypes not specified. Writing as independent tiers
#> Warning: path[1]="/home/agricolamz/work/packages/phonfieldwork/docs/reference/test.eaf": No such file or directory