Index of /web/packages/ftExtra/readme

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[TXT]README.html2020-08-30 03:00 8.1K 
[DIR]man/2020-08-30 03:00 -  

README

ftExtra

R build status CRAN status Downloads Monthly downloads

The ftExtra package provides helper functions for the flextable package:

Installation

from CRAN

install.packages("ftExtra")

from GitHub

remotes::install_github("atusy/ftExtra")

Example

library(ftExtra)

Parse markdown texts

data.frame(
  x = c("**bold**", "*italic*"),
  y = c("^superscript^", "~subscript~"),
  z = c("***~ft~^Extra^** is*", "*Cool*"),
  stringsAsFactors = FALSE
) %>%
  as_flextable() %>%
  colformat_md()

Span headers

iris %>%
  head %>%
  as_flextable() %>%
  span_header()

Group rows

library(dplyr, warn.conflicts = FALSE)
iris %>%
  group_by(Species) %>%
  slice(1:2) %>%
  as_flextable()