invert_row: Inverting data frame rows.

Description Usage Arguments Details Value Examples

Description

This function will invert the order of rows in a data frame and optionally returns the data frame as a tibble or data table.

Usage

1
invert_row(df, out)

Arguments

df

Short for data frame, the first argument should be a data frame of any type.

out

Short for output, this argument determines the form of the resulting data. Options include 'DF' for data frame, 'TB' for tibble, and 'DT' for data table.

Details

Function will return errors if first argument is not of type data frame. out is an optional argument that determines if the output is a data frame, tibble, or data table. Defaults to data frame if left empty.

Value

Either a data frame, data table, or tibble with row order inverted.

Examples

1
2

fieldima/flipR documentation built on Dec. 20, 2021, 8:40 a.m.