View source: R/print_data.frame.R
| print_data.frame | R Documentation |
data.frameThis function prints a (possibly abbreviated) data.frame.
print_data.frame(
x,
rows = NULL,
cols = NULL,
digits = NULL,
row.names = TRUE,
col.names = TRUE
)
x |
[ |
rows, cols |
[ Printing is abbreviated in the middle. Can be |
digits |
[ Negative values are allowed, resulting in rounding to a power of ten. Can be |
row.names, col.names |
[ |
Invisibly returns x.
Other package helpers:
Dictionary,
Storage,
check_missing(),
find_namespace_calls(),
identical_structure(),
input_check_response(),
match_arg(),
package_logo(),
print_matrix(),
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.