Add a first column to a data.frame. This is most commonly used to append a rowname column to create a cor_df.
first_col(df, ..., var = "rowname")
Data frame
Values to go into the column
Label for the column. Default is "rowname"
# NOT RUN { first_col(mtcars, 1:nrow(mtcars)) # }
Run the code above in your browser using DataLab