rrowl: Create an 'rtable' row from a vector or list of values

View source: R/tt_compatibility.R

rrowlR Documentation

Create an rtable row from a vector or list of values

Description

Create an rtable row from a vector or list of values

Usage

rrowl(row.name, ..., format = NULL, indent = 0, inset = 0L)

Arguments

row.name

(string or NULL)
row name. If NULL, an empty string is used as row.name of the rrow().

...

values in vector/list form.

format

(string, function, or list)
the format label (string) or formatter function to apply to the cell values passed via .... See formatters::list_valid_format_labels() for currently supported format labels.

indent

[Deprecated]

inset

(integer(1))
the table inset for the row or table being constructed. See formatters::table_inset() for details.

Value

A row object of the context-appropriate type (label or data).

See Also

Other compatibility: rheader(), rrow(), rtable()

Examples

rrowl("a", c(1, 2, 3), format = "xx")
rrowl("a", c(1, 2, 3), c(4, 5, 6), format = "xx")


rrowl("N", table(iris$Species))
rrowl("N", table(iris$Species), format = "xx")

x <- tapply(iris$Sepal.Length, iris$Species, mean, simplify = FALSE)

rrow(row.name = "row 1", x)
rrow("ABC", 2, 3)

rrowl(row.name = "row 1", c(1, 2), c(3, 4))
rrow(row.name = "row 2", c(1, 2), c(3, 4))


Roche/rtables documentation built on April 20, 2024, 9:16 p.m.