rtable
This is a new generic function to convert objects to rtable
tables.
as.rtable(x, ...)# S3 method for data.frame
as.rtable(x, format = "xx.xx", ...)
An rtables
table object. Note that the concrete class will depend on the method used.
(data.frame
)
the object which should be converted to an rtable
.
additional arguments for methods.
(string
or function
)
the format which should be used for the columns.
as.rtable(data.frame)
: Method for converting a data.frame
that contains numeric columns to rtable
.
x <- data.frame(
a = 1:10,
b = rnorm(10)
)
as.rtable(x)
Run the code above in your browser using DataLab