powered by
A function to transform the gt row names from generics to the column name and the total N of each column
gt
common_rownames(data, group)
A character vector
the data to create columns with
whether to group the data to calculate Ns
data(adsl, package = "tidyCDISC") # Values of TRT01P unique(adsl$TRT01P) # Common row names based on TRT01P common_rownames(adsl, "TRT01P")
Run the code above in your browser using DataLab