first_col {corrr} | R 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))
[Package corrr version 0.4.4 Index]