add_rowindex: Add a column of row numbers to a data frame

View source: R/adds.R

add_rowindexR Documentation

Add a column of row numbers to a data frame

Description

Add a column of row numbers to a data frame

Usage

add_rowindex(x)

Arguments

x

A data frame

Value

The same data frame with a column of 1-based integers named .row.

Examples


mtcars %>% add_rowindex()


topepo/parsnip documentation built on April 16, 2024, 3:23 a.m.