Arguments
- x
the object which should be converted to an
rtable
.- ...
additional arguments for methods.
- format
the format which should be used for the columns.
Methods (by class)
as.rtable(data.frame)
: method for convertingdata.frame
that contain numeric columns tortable
.
Examples
x <- data.frame(
a = 1:10,
b = rnorm(10)
)
as.rtable(x)
#> a b
#> ——————————————————
#> 1 1.00 0.22
#> 2 2.00 -0.88
#> 3 3.00 0.85
#> 4 4.00 -0.33
#> 5 5.00 -0.59
#> 6 6.00 -0.25
#> 7 7.00 -1.14
#> 8 8.00 0.10
#> 9 9.00 -0.38
#> 10 10.00 -0.07