corrr (version 0.4.0)

first_col: 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 rowname column to create a cor_df.

Usage

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

Arguments

df

Data frame

...

Values to go into the column

var

Label for the column. Default is "rowname"

Examples

Run this code
# NOT RUN {
first_col(mtcars, 1:nrow(mtcars))
# }

Run the code above in your browser using DataLab