head_tail | R Documentation |
Only display the specified number of rows and columns of the data frame are extracted, otherwise "..." and abbreviations are used to denote the rest.
head_tail(data, n = 3L, col_n = 3L)
data |
an data frame |
n |
an integer. Specify the number of rows you want to extract. The data is extracted from the beginning and end of the specified number of lines, so the data frame is the specified number of lines x 2 + ellipsis. |
col_n |
an integer. Specify the number of rows you want to extract. The data is extracted from the beginning and end of the specified number of columns, so the data frame is the specified number of columns x 2 + ellipsis. |
If the specified number of rows and columns is greater than the original data frame, the data is display as it is.
head_tail(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.