powered by
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", ...)
# 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.
rtables
(data.frame) the object which should be converted to an rtable.
data.frame
additional arguments for methods.
(string or function) the format which should be used for the columns.
string
function
as.rtable(data.frame): Method for converting a data.frame that contains numeric columns to rtable.
as.rtable(data.frame)
x <- data.frame( a = 1:10, b = rnorm(10) ) as.rtable(x)
Run the code above in your browser using DataLab