first_col: Add a first column to a data.frame

View source: R/utility.R

first_colR Documentation

Add a first column to a data.frame

Description

Add a first column to a data.frame. This is most commonly used to append a term column to create a cor_df.

Usage

first_col(df, ..., var = "term")

Arguments

df

Data frame

...

Values to go into the column

var

Label for the column, with the default "term"

Examples

first_col(mtcars, 1:nrow(mtcars))

tidymodels/corrr documentation built on Jan. 27, 2024, 8:41 a.m.