convert_to_df: Converts example to a data.frame

Description Usage Arguments Value Author(s)

View source: R/convert_to_df.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 Jan. 14, 2022, 9:41 p.m.