Learn R Programming

kutils (version 1.69)

markupConvert: Convert marked-up semTable structures to latex, html, or csv

Description

The conversion key tables are included in the code of the function.

Usage

markupConvert(marked, type = c("latex", "html", "csv"),
  table.float = FALSE, longtable = FALSE, caption = NULL,
  label = NULL, file = NULL, columns, centering = "siunitx")

Arguments

marked

A character string

type

Output type, latex", "html", or "csv".

table.float

TRUE if you want insertion of '\begintable'

longtable

should a tabular or a longtable object be created?

caption

A caption to use if either longtable or table is TRUE

label

A LaTeX label for cross-references

file

A file stub, to which ".tex", ".html", or ".csv" can be added

columns

For SEM table, the list of columns objects

centering

Default "siunitx". Specify "none" to return to behavior of semTable before 1.50.

Value

a list of marked up character objects

Details

The semTable uses a customized markup framework that uses character sequences that begin and end with underscores, such as "_BOMC2_ for "begin of multi-column entity that will use 2 columns". These special markups need to be converted into "tex", "html", or "csv" formats.