Convert .eaf file from ELAN to a dataframe.

eaf_to_df(file_name)

Arguments

file_name

string with a filename or path to the .eaf file

Value

a dataframe with columns: tier, id, content, tier_name, tier_type, time_start, time_end, source).

Examples

eaf_to_df(system.file("extdata", "test.eaf", package = "phonfieldwork"))
#> tier id content tier_name tier_type time_start time_end source #> 9 1 1 intervals praat 0.000 0.012 test.eaf #> 10 2 1 empty_intervals praat 0.000 0.012 test.eaf #> 11 1 2 t intervals praat 0.012 0.248 test.eaf #> 12 2 2 C empty_intervals praat 0.012 0.248 test.eaf #> 1 1 3 e intervals praat 0.248 0.396 test.eaf #> 2 2 3 V empty_intervals praat 0.248 0.396 test.eaf #> 3 1 4 s intervals praat 0.396 0.512 test.eaf #> 4 2 4 C empty_intervals praat 0.396 0.512 test.eaf #> 5 1 5 t intervals praat 0.512 0.652 test.eaf #> 6 2 5 C empty_intervals praat 0.512 0.652 test.eaf #> 7 1 6 intervals praat 0.652 300.000 test.eaf #> 8 2 6 empty_intervals praat 0.652 300.000 test.eaf