Learn R Programming

glossr (version 0.8.0)

gloss_df: Render gloss from a dataframe

Description

Render gloss from a dataframe

Usage

gloss_df(df, output_format = config$output, numbering = config$numbering)

Value

Object of class gloss with the original input as data attribute.

Arguments

df

Dataframe one row per gloss. Columns translation, source and label have special meaning (see as_gloss()); all the others will be interpreted as lines to align in the order given.

output_format

(Optional) Whether it will use latex, word or html format.

numbering

(Optional) Whether the gloss should be numbered (in Word and HTML).

Examples

Run this code
my_gloss <- data.frame(
  first_line = "my first line",
  second_line = "my second line",
  translation = "Translation of my example",
  label = "label"
)
gloss_df(my_gloss)

Run the code above in your browser using DataLab