cat_ft: Create and format flextable

Description Usage Arguments

View source: R/flextableFuns.R

Description

Similar to cat_ptr but uses flextable for word documents

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
cat_ft(
  df,
  Digits = 3,
  Caption = NULL,
  Tag = NULL,
  noHeader = FALSE,
  theme_ = "theme_vanilla",
  first.row.names = FALSE,
  row.names.null = TRUE,
  parse.pattern = "_",
  parse.replace = " ",
  font_ = "Cambria",
  fontsizeH = 8,
  fontsizeB = 8,
  rotationH = NULL,
  rotationB = NULL,
  alignB = "left",
  formatter = NULL
)

Arguments

df

data frame for table

Digits

number of decimal places for rounding

Caption

table caption

Tag

tag for pandoc-crossref

noHeader

logical to use header

theme_

flextable theme to apply

first.row.names

use first row as column headers

row.names.null

use row names

parse.pattern

pattern to replace

parse.replace

string to replace parse.pattern

font_

font to use

fontsizeH

header font size in pts

fontsizeB

body font size in pts

rotationH

logical vector of header columns to rotate

rotationB

logical vector of body columns to rotate

alignB

body cell text alignment

formatter

function for formatting cells


duanxd1/gfuns documentation built on March 7, 2020, 12:46 a.m.