Renames columns to values in a row of data frame
row_to_name(data, row_n = 1, delete_row = TRUE)
input data set
row number to take names from. Default is row 1
logical argument whether to delete row after renaming.
Default is TRUE
# NOT RUN {
fmt_table1(trial, by = "trt") %>%
purrr::pluck("table1") %>%
row_to_name()
# }
Run the code above in your browser using DataLab