more: Add filler rows to a data frame

View source: R/misc.R

moreR Documentation

Add filler rows to a data frame

Description

This function is a utility to add "filler" rows to the bottom of a data.frame. Basically an ellipsis ("...") for tabular data.

Usage

more(.data, fill = ".", extra_rows = 4)

Arguments

.data

Original data.frame or tibble to which the additional rows will be added; note that if a data.frame is passed in it will be coerced to a tibble prior to row binding

fill

Character vector of length 1 specifying the content to fill the extra rows; default is .

extra_rows

Numeric vector of length 1 indicating how many rows of filler content should be added to the original .data object; default is 4

Value

A tibble with as many rows as the original input (.data) plus the number of extra rows (extra_rows), all of which are populated with the "filler" (fill) content in every column

Examples


more(head(mtcars))
rbind(more(head(mtcars, 1), fill = ".", extra_rows = 1), tail(mtcars, 1))


vpnagraj/yawp documentation built on March 31, 2022, 9:56 a.m.