Skip to contents

print.Tablespan

Usage

# S3 method for class 'Tablespan'
print(x, digits = 2, n = 3, ...)

Arguments

x

result from tablespan

digits

number of digits to round doubles to

n

number of rows to print

...

additional arguments passed to prmatrix

Value

nothing

Examples

data("iris")
tbl <- tablespan(data = iris[iris$Species == "setosa", ],
          formula = Species ~ (Sepal = Sepal.Length + Sepal.Width) +
            (Petal = Petal.Length + Petal.Width))
print(tbl)
#>                                                                 
#>  |         | Sepal                    Petal                    |
#>  | Species | Sepal.Length Sepal.Width Petal.Length Petal.Width |
#>  | ------- - ------------ ----------- ------------ ----------- |
#>  | setosa  | 5.1          3.5         1.4          0.2         |
#>  | setosa  | 4.9          3           1.4          0.2         |
#>  | setosa  | 4.7          3.2         1.3          0.2         |
#>  | ...     | ...          ...         ...          ...         |