as_lscape: Mark table text for display in landscape environment

View source: R/preview.R

as_lscapeR Documentation

Mark table text for display in landscape environment

Description

Important: this function will not make your table render in landscape mode in a stand alone TeX document. This function doesn't actually make the table "landscape". It simply adds to the class attribute so that functions down the line can look for this tag and wrap the table in landscape environment. The landscaping is entirely the responsibility of some other function, just not this one.

Usage

as_lscape(x)

is_lscape(x)

Arguments

x

output from either stable() or stable_long()

Value

For as_lscape(), the input is returned, but with stable_lscape added to the class attribute. For is_lscape(), a logical value is returned, indicating whether or not the object inherits from stable_lscape.

See Also

st_wrap(), st2article(), st2report()

Examples


out <- stable(stdata())
is_lscape(out)

land <- as_lscape(out)
is_lscape(land)

st_wrap(as_lscape(out))


metrumresearchgroup/pmtables documentation built on Dec. 22, 2024, 1:34 a.m.