| set_header_labels {flextable} | R Documentation |
This function set labels for specified columns in a single row header of a flextable.
set_header_labels(x, ...)
x |
a |
... |
a named list (names are data colnames), each element is a single character value specifying label to use. |
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