headtail | R Documentation |
Print the first and last rows of a data frame using head and tail, respectively. Print the number of omitted rows
headtail(x, n = 6, pattern = "[%d rows omitted]")
x |
data frame |
n |
total number of rows to be printed. |
pattern |
pattern given to |
number of omitted rows, invisibly
x <- data.frame(number = 1:26, letter = LETTERS)
headtail(x)
headtail(x, 10)
headtail(x, 16)
headtail(x[10:20, ], 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.