A data.trame prints almost like a tibble.
# S3 method for class 'data.trame'
print(
x,
width = NULL,
...,
n = NULL,
max_extra_cols = NULL,
max_footer_lines = NULL
)
# S3 method for class 'data.trame'
format(
x,
width = NULL,
...,
n = NULL,
max_extra_cols = NULL,
max_footer_lines = NULL
)
# S3 method for class 'datatrame'
obj_sum(x)
# S3 method for class 'data.trame'
obj_sum(x)
# S3 method for class 'datatrame'
tbl_sum(x, ...)
# S3 method for class 'data.trame'
tbl_sum(x, ...)
# S3 method for class 'data.trame'
tbl_nrow(x, ...)
# S3 method for class 'data.trame'
str(object, ..., indent.str = " ", nest.lev = 0)
A data.trame object.
The width of the text output. If NULL
, the default,
getOption("width")
is used.
Additional arguments passed to format()
.
The number of rows to print. If NULL
, a default number is used.
The maximum number of extra columns to print
abbreviated. If NULL
by default, a reasonable default value is used.
Maximum number of lines in the footer. If NULL
, a
reasonable default value is used.
A data.trame.
The string used for indentation.
The current nesting level, used for recursive printing.
dtrm <- data.trame(
a = -1:3,
b = letters[1:5],
c = factor(LETTERS[1:5]),
d = c(TRUE, FALSE, TRUE, NA, TRUE), .key = c('a', 'b'), .rows = 5
)
dtrm
#> # A data.trame: [5 × 4]
#> # Key: a, b
#> a b c d
#> <int> <chr> <fct> <lgl>
#> 1 -1 a A TRUE
#> 2 0 b B FALSE
#> 3 1 c C TRUE
#> 4 2 d D NA
#> 5 3 e E TRUE
str(dtrm)
#> dtrm [5 × 4] (S3: data.trame/data.frame)
#> $ a: int [1:5] -1 0 1 2 3
#> $ b: chr [1:5] "a" "b" "c" "d" ...
#> $ c: Factor w/ 5 levels "A","B","C","D",..: 1 2 3 4 5
#> $ d: logi [1:5] TRUE FALSE TRUE NA TRUE
#> - attr(*, ".internal.selfref")=<externalptr>
#> - attr(*, "sorted")= chr [1:2] "a" "b"