huxtable (version 0.3.1)

latex_float: Float position for LaTeX

Description

Functions to get or set the table-level float position for latex property of a huxtable.

Usage

latex_float(ht)
latex_float(ht) <- value
set_latex_float(ht, value)

Arguments

ht

A huxtable.

value

A length-one character vector, used by LaTeX for positioning the float. Set to NA for the default, 'h'.

Value

For latex_float, the latex_float attribute. For set_latex_float, the ht object.

Details

Quick reference: 'h' here, 'h!' definitely here, 't' top of page, 'b' bottom of page, 'p' page of floats. See LaTeX documentation for more details. If you use 'H' (definitely here), you must require the float package.

Examples

Run this code
# NOT RUN {
ht <- huxtable(a = 1:3, b = 1:3)
latex_float(ht) <-  'tab:mytable'
latex_float(ht)

# }

Run the code above in your browser using DataLab