Learn R Programming

rtables (version 0.4.0)

rrowl: rrowl

Description

rrowl

Usage

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

Arguments

row.name

if NULL then the FUN argument is deparsed and used as row.name of the rrow

values in vector/list form

format

if FUN does not return a formatted rcell then the format is applied

indent

deprecated.

Value

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

Examples

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab