flextable R package
flextable
The flextable package provides a framework for easily create tables for reporting. Tables can be embedded within:
- R Markdown documents and Shiny web applications.
- Microsoft Word or PowerPoint documents.
Getting Started
An API is available to let R users create tables for reporting and control their formatting properties and their layout. A flextable
object is a data.frame representation, it can be manipulated with functions that give control over:
- headers content
- text, paragraphs, cells and border formatting of any element
- displayed values
There are articles on the flextable website that will help you get you to start quickly:
The help pages can be read here.
Installation
install.packages("flextable")
You can get the development version from GitHub:
devtools::install_github("davidgohel/flextable")