Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

linebreak

Make linebreak in LaTeX Table cells


Description

This function generate LaTeX code of makecell so that users can have linebreaks in their table

Usage

linebreak(x, align = c("l", "c", "r"), double_escape = F, linebreaker = "\n")

Arguments

x

A character vector

align

Choose from "l", "c" or "r"

double_escape

Whether special character should be double escaped. Default is FALSE.

linebreaker

Symbol for linebreaks to replace. Default is \\n.


kableExtra

Construct Complex Table with 'kable' and Pipe Syntax

v1.3.4
MIT + file LICENSE
Authors
Hao Zhu [aut, cre] (<https://orcid.org/0000-0002-3386-6076>), Thomas Travison [ctb], Timothy Tsai [ctb], Will Beasley [ctb], Yihui Xie [ctb], GuangChuang Yu [ctb], Stéphane Laurent [ctb], Rob Shepherd [ctb], Yoni Sidi [ctb], Brian Salzer [ctb], George Gui [ctb], Yeliang Fan [ctb], Duncan Murdoch [ctb], Bill Evans [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.