head1 | R Documentation |
Function to replicate the head() function from the 'utils' package, but with a default of returning only one row.
head1(x, n = 1)
x |
A vector, matrix, table, data frame or function. |
n |
The number of rows to return. Defaults to 1. |
# Return one row
head1(mtcars)
# Return multiple rows
head1(x = mtcars, n = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.