write_back_dir: write_back_dir Writes back edited annotations to original...

View source: R/write_back_dir.R

write_back_dirR Documentation

write_back_dir Writes back edited annotations to original files needs csv file form data.frame created by red_exb_dir()

Description

write_back_dir Writes back edited annotations to original files needs csv file form data.frame created by red_exb_dir()

Usage

write_back_dir(
  exb,
  sep = ",",
  PathExbDir,
  PathNewFiles = PathExbDir,
  suffix = "_new",
  verbose = TRUE,
  transcription_text = "Text",
  annotation_colums = NA,
  overwrite_annotations = TRUE,
  assignSpeakersAnnotation = FALSE,
  recreate_timeline = FALSE,
  hideAnnotationTiers = TRUE
)

Arguments

exb

data.frame created by read_exb_dir() or csv file created by such an object

sep

Seperator in the csv file, if object can be left out

PathExbDir

Path of the original files. Attention: the files must have the same names as in the "File" collumn

PathNewFiles

Default is the original Directory, can be changend

suffix

suffix to be added to the new files, default is "_new"

verbose

logical, if TRUE, status will be shown

transcription_text

specify column with transcription text

annotation_colums

specify names of annotaion columns

overwrite_annotations

if true old annotaitons will be deleted, AT THE MOMENT ONLY WORKS IF TRUE

assignSpeakersAnnotation

make a tier for every category/speaker

recreate_timeline

use values from exb to recreate timeline and remove old timeline

hideAnnotationTiers

annotation tiers will be hidden in exmaralda


TimoSchuer/ExmaraldaR documentation built on Jan. 28, 2024, 11:10 a.m.