Convert data.frame to flextable
df2flextable(
df,
vanilla = FALSE,
fontname = NULL,
fontsize = 12,
add.rownames = FALSE,
even_header = "transparent",
odd_header = "#5B7778",
even_body = "#EFEFEF",
odd_body = "transparent",
vlines = TRUE,
colorheader = FALSE,
digits = 2,
digitp = 3,
align_header = "center",
align_body = "right",
align_rownames = "left",
NA2space = TRUE,
pcol = NULL,
...
)
An object of class "flextable" which is described in flextable
A data.frame
A Logical
Font name
font size
logical. Whether or not include rownames
background color of even_header
background color of even_header
background color of even_body
background color of even_body
Logical. Whether or not draw vertical lines
Logical. Whether or not use color in header
integer indicating the number of decimal places
integer indicating the number of decimal places of p values
alignment of header. Expected value is one of 'left', 'right', 'center', 'justify'.
alignment of body. Expected value is one of 'left', 'right', 'center', 'justify'.
alignment of rownames. Expected value is one of 'left', 'right', 'center', 'justify'.
A logical. If true, convert NA value to space
An integer indicating p value. If specified, convert value less than 0.01 to "< 0.001" in given column.
further arguments to be passed to flextable