data.frame
This function prints a (possibly abbreviated) data.frame
.
print_data.frame(
x,
rows = NULL,
cols = NULL,
digits = NULL,
row.names = TRUE,
col.names = TRUE
)
Invisibly returns x
.
[data.frame
]
A data.frame
.
[integer(1)
| NULL
]
The number of rows or columns to be printed, greater or equal 2
.
Printing is abbreviated in the middle.
Can be NULL
to print everything.
[integer(1)
| NULL
]
The number of decimal places to be used.
Negative values are allowed, resulting in rounding to a power of ten.
Can be NULL
to not round.
[logical(1)
]
Print row names or column names?
Other package helpers:
Dictionary
,
Storage
,
identical_structure()
,
input_check_response()
,
match_arg()
,
package_logo()
,
print_matrix()
,
renv_development_packages()
,
system_information()
,
unexpected_error()
,
user_confirm()
x <- data.frame(1:10, LETTERS[1:10], stats::rnorm(10))
print_data.frame(x, rows = 7)
print_data.frame(x, rows = 7, cols = 2)
print_data.frame(x, rows = 7, cols = 2, digits = 1)
print_data.frame(x, rows = 7, cols = 2, digits = 1, row.names = FALSE)
print_data.frame(x, rows = 7, cols = 2, digits = 1, col.names = FALSE)
Run the code above in your browser using DataLab