Learn R Programming

flextable (version 0.3.0)

flextable: flextable creation

Description

Create a flextable object with function flextable.

flextable are designed to make tabular reporting easier for R users. Functions are available to let you format text, paragraphs and cells; table cells can be merge vertically or horizontally, row headers can easilly be defined, rows heights and columns widths can be manually set or automatically computed.

Usage

flextable(data, col_keys = names(data), cwidth = 0.75, cheight = 0.25)

# S3 method for flextable print(x, preview = "html", ...)

regulartable(data, col_keys = names(data), cwidth = 0.75, cheight = 0.25)

Arguments

data

dataset

col_keys

columns names/keys to display. If some column names are not in the dataset, they will be added as blank columns by default.

cwidth, cheight

initial width and height to use for cell sizes.

x

flextable object

preview

preview type, one of c("html", "pptx", "docx").

...

unused argument

Details

A flextable is made of 2 parts: header and body.

Most functions have an argument named part that will be used to specify what part of of the table should be modified.

Examples

Run this code
# NOT RUN {
ft <- flextable(mtcars)
ft
# }

Run the code above in your browser using DataLab