Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

gtsummary (version 0.1.0)

row_to_name: Renames columns to values in a row of data frame

Description

Renames columns to values in a row of data frame

Usage

row_to_name(data, row_n = 1, delete_row = TRUE)

Arguments

data

input data set

row_n

row number to take names from. Default is row 1

delete_row

logical argument whether to delete row after renaming. Default is TRUE

Examples

Run this code
# NOT RUN {
fmt_table1(trial, by = "trt") %>%
  purrr::pluck("table1") %>%
  row_to_name()
# }

Run the code above in your browser using DataLab