convert_to_df: Converts example to a data.frame

View source: R/convert_to_df.R

convert_to_dfR Documentation

Converts example to a data.frame

Description

Converts example to a data.frame and adds it to the database of Interlinear-Glossed examples.

Usage

convert_to_df(
  transliteration,
  glosses,
  free_translation = "",
  comment = "",
  annotation = NULL,
  drop_transliteration = FALSE,
  write_to_db = TRUE,
  counter = getOption("lingglosses.example_counter")
)

Arguments

transliteration

character vector of the length one for the transliteration line.

glosses

character vector of the length one for the glosses line.

free_translation

character vector of the length one for the free translation line.

comment

character vector of the length one for the comment line (under the free translation line).

annotation

character vector of the length one for the annotation line (above translation).

drop_transliteration

logical variable that denotes, whether user wants to have an example without transliteration.

write_to_db

logical variable that denotes, whether example should be added to the example database.

counter

double, value that denotes example id. By default gathered automatically through hidden variables in the Rmd document.

Value

dataframe with

Author(s)

George Moroz <agricolamz@gmail.com>


agricolamz/lingglosses documentation built on Oct. 12, 2023, 3:18 p.m.