Create an rtable
row from a vector or list of values
Arguments
- row.name
(
string
orNULL
)
row name. IfNULL
, an empty string is used asrow.name
of therrow()
.- ...
values in vector/list form.
- format
(
string
,function
, orlist
)
the format label (string) or formatter function to apply to the cell values passed via...
. Seeformatters::list_valid_format_labels()
for currently supported format labels.- indent
- inset
(
integer(1)
)
the table inset for the row or table being constructed. Seeformatters::table_inset()
for details.
Examples
rrowl("a", c(1, 2, 3), format = "xx")
#> [DataRow indent_mod 0]: a 1 2 3
rrowl("a", c(1, 2, 3), c(4, 5, 6), format = "xx")
#> [DataRow indent_mod 0]: a 1 2 3 4 5 6
rrowl("N", table(iris$Species))
#> [DataRow indent_mod 0]: N 50 50 50
rrowl("N", table(iris$Species), format = "xx")
#> [DataRow indent_mod 0]: N 50 50 50
x <- tapply(iris$Sepal.Length, iris$Species, mean, simplify = FALSE)
rrow(row.name = "row 1", x)
#> [DataRow indent_mod 0]: row 1 5.006, 5.936, 6.588
rrow("ABC", 2, 3)
#> [DataRow indent_mod 0]: ABC 2 3
rrowl(row.name = "row 1", c(1, 2), c(3, 4))
#> [DataRow indent_mod 0]: row 1 1 2 3 4
rrow(row.name = "row 2", c(1, 2), c(3, 4))
#> [DataRow indent_mod 0]: row 2 1, 2 3, 4