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))

corrr documentation built on Aug. 17, 2022, 1:05 a.m.