columnname for rows r code example Example: R make column of rownames library(dplyr) df <- tibble::rownames_to_column(df, "VALUE")