
Last chance! 50% off unlimited learning
Sale ends in
This function set labels for specified columns in a single row header of a flextable.
set_header_labels(x, ...)
a flextable
object
a named list (names are data colnames), each element is a single character value specifying label to use.
# NOT RUN {
ft_1 <- flextable( head( iris ))
ft_1 <- set_header_labels(ft_1, Sepal.Length = "Sepal length",
Sepal.Width = "Sepal width", Petal.Length = "Petal length",
Petal.Width = "Petal width"
)
ft_1
# }
Run the code above in your browser using DataLab