example_data <- data.frame(
sex = c("female", "male"),
height = c("158 (154 - 161)", "178 (175 - 188)")
)
as_inline(example_data, tbl_variables = 'sex', tbl_values = 'height')
car_data <- mtcars
car_data$car_name <- rownames(mtcars)
as_inline(car_data, tbl_variables = 'car_name', tbl_values = 'mpg')
Run the code above in your browser using DataLab