Learn R Programming

tern (version 0.9.8)

as.rtable: Convert to rtable

Description

[Stable]

This is a new generic function to convert objects to rtable tables.

Usage

as.rtable(x, ...)

# S3 method for data.frame as.rtable(x, format = "xx.xx", ...)

Value

An rtables table object. Note that the concrete class will depend on the method used.

Arguments

x

(data.frame)
the object which should be converted to an rtable.

...

additional arguments for methods.

format

(string or function)
the format which should be used for the columns.

Methods (by class)

  • as.rtable(data.frame): Method for converting a data.frame that contains numeric columns to rtable.

Examples

Run this code
x <- data.frame(
  a = 1:10,
  b = rnorm(10)
)
as.rtable(x)

Run the code above in your browser using DataLab