diff --git a/DESCRIPTION b/DESCRIPTION index b4921ba..b18bd4e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: ftExtra Title: Extensions for 'Flextable' -Version: 0.6.1 -Date: 2023-09-28 +Version: 0.6.3 +Date: 2024-03-31 Authors@R: c(person(given = "Atsushi", family = "Yasumoto", diff --git a/NEWS.md b/NEWS.md index a65ff3c..6d0c43a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,11 @@ -# ftExtra 0.6.2 +# ftExtra 0.6.3 * Require **flextable**>=0.9.5 to fix broken `colformat_md` (#101) +# ftExtra 0.6.2 + +* Avoid error from using horizontal rule (#98) + # ftExtra 0.6.1 * Deprecated functions masking the corresponding ones from the **flextable** package (#95) diff --git a/R/footnote.R b/R/footnote.R index 15bdae5..5ad3169 100644 --- a/R/footnote.R +++ b/R/footnote.R @@ -37,7 +37,8 @@ #' } #' #' # Use a user-defined function to format footnote symbols -#' if (rmarkdown::pandoc_available("2.0.6")) { +#' # Skipped to reduce build time +#' if (FALSE) { #' # a function to format symbols of footnote references #' ref <- function(n, part, footer) { #' # Change symbols by context diff --git a/README.Rmd b/README.Rmd index f8a533d..bc7913f 100644 --- a/README.Rmd +++ b/README.Rmd @@ -71,7 +71,7 @@ data.frame( z = c("***~ft~^Extra^** is*", "*Cool*"), stringsAsFactors = FALSE ) %>% - as_flextable() %>% + flextable() %>% colformat_md() ``` @@ -81,7 +81,7 @@ data.frame( ```{r span-header, render = render_html} iris %>% head() %>% - as_flextable() %>% + flextable() %>% span_header() ``` @@ -92,5 +92,5 @@ library(dplyr, warn.conflicts = FALSE) iris %>% group_by(Species) %>% slice(1:2) %>% - as_flextable() + flextable() ``` diff --git a/README.md b/README.md index fb0a951..bdbcdf1 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ data.frame( z = c("***~ft~^Extra^** is*", "*Cool*"), stringsAsFactors = FALSE ) %>% - as_flextable() %>% + flextable() %>% colformat_md() ``` @@ -58,7 +58,7 @@ data.frame( ``` r iris %>% head %>% - as_flextable() %>% + flextable() %>% span_header() ``` @@ -71,7 +71,7 @@ library(dplyr, warn.conflicts = FALSE) iris %>% group_by(Species) %>% slice(1:2) %>% - as_flextable() + flextable() ``` diff --git a/docs/404.html b/docs/404.html index f4ef662..ee06070 100644 --- a/docs/404.html +++ b/docs/404.html @@ -32,7 +32,7 @@ ftExtra - 0.6.1 + 0.6.3 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 380372e..6dde3f0 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -17,7 +17,7 @@ ftExtra - 0.6.1 + 0.6.3 diff --git a/docs/LICENSE.html b/docs/LICENSE.html index f07b7c5..2be317c 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -17,7 +17,7 @@ ftExtra - 0.6.1 + 0.6.3 diff --git a/docs/articles/format_columns.html b/docs/articles/format_columns.html index 32392fd..207c187 100644 --- a/docs/articles/format_columns.html +++ b/docs/articles/format_columns.html @@ -33,7 +33,7 @@ ftExtra - 0.6.1 + 0.6.3 @@ -135,12 +135,12 @@

Why markdown?) )
- - - + +

Oxide

+ - - + +

Oxide

SiO2

Al2O3

SiO2

Al2O3

@@ -187,12 +187,12 @@

Why markdown?} ft
- - - + +

Oxide

+ - - + +

Oxide

SiO2

Fe2O3

SiO2

Fe2O3

@@ -219,12 +219,12 @@

Why markdown?flextable::flextable() %>% ftExtra::colformat_md()
- - - + +

Oxide

+ - - + +

Oxide

SiO2

Fe2O3

SiO2

Fe2O3

@@ -263,26 +263,26 @@

Basic examples flextable() %>% colformat_md()
- - + +
- - - - + + + + - - - - + + + + - - - - + + + +

a

b

c

d

a

b

c

d

bold

superscript

code

ftExtra is

bold

superscript

code

ftExtra is

italic

subscript

underline

Cool

italic

subscript

underline

Cool

@@ -339,17 +339,17 @@

Footnotescolformat_md() %>% flextable::autofit(add_w = 0.5)

- - + +
- - + + - - + + - +

package

description

package

description

ftExtra

Extensions for Flextable1

ftExtra

Extensions for Flextable1

1Supports of footnotes

1Supports of footnotes

Reference symbols can be configured by @@ -374,17 +374,17 @@

Footnotes) %>% flextable::autofit(add_w = 0.5)
- - + +
- - + + - - + + - +

package

description

package

description

ftExtra[ii]

Extensions for Flextable[iii]

ftExtra[ii]

Extensions for Flextable[iii]

[ii]Short of flextable extra; [iii]Supports of footnotes;

[ii]Short of flextable extra; [iii]Supports of footnotes;

In order to add multiple footnotes to a cell, use normal footnotes @@ -402,13 +402,13 @@

Footnotesflextable() %>% colformat_md()
- - - - + +

x

foo1, 2

+ + - - + +

x

foo1, 2

1aaa

2bbb

1aaa

2bbb

@@ -456,26 +456,26 @@

Footnotes# tweak width for visibility flextable::autofit(add_w = 0.2)
- - + +
- - + + - - + + - - + + - - - + + +

header1a

header2

header1a

header2

x1

a

x1

a

y

b2

y

b2

a: note a

1: note 1

2: note 2

a: note a

1: note 1

2: note 2

@@ -511,10 +511,10 @@

Images colformat_md() %>% flextable::autofit()
- - - - + +

R

+ +

R

The R logo is distributed by The R Foundation with the CC-BY-SA 4.0 @@ -529,10 +529,10 @@

Line breaksflextable() %>% colformat_md()
- - - - + +

linebreak

a b

+ +

linebreak

a b

Pandoc’s markdown supports hard line breaks by adding a backslash or @@ -542,10 +542,10 @@

Line breaksflextable() %>% colformat_md()
- - - - + +

linebreak

a
b

+ +

linebreak

a
b

It is also possible to make \n as a hard line break by @@ -555,10 +555,10 @@

Line breaksflextable() %>% colformat_md(md_extensions = "+hard_line_breaks")
- - - - + +

linebreak

a
b

+ +

linebreak

a
b

Markdown treats continuous linebreaks as a separator of blocks such @@ -571,10 +571,10 @@

Line breaksflextable() %>% colformat_md(.sep = "\n\n")
- - - - + +

linebreak

a

b

+ +

linebreak

a

b

@@ -587,8 +587,8 @@

Citations
@Manual{R-ftExtra,
   title = {ftExtra: Extensions for Flextable},
   author = {Atsushi Yasumoto},
-  year = {2023},
-  note = {R package version 0.6.1},
+  year = {2024},
+  note = {R package version 0.6.3},
   url = {https://ftextra.atusy.net},
 }

Second, specify it, and optionally a CSL file, within the YAML front @@ -613,13 +613,13 @@

Citations - - - + +

Cite

+ - - - + + +

Cite

Yasumoto (2023)

(Yasumoto 2023)

(2023)

Yasumoto (2024)

(Yasumoto 2024)

(2024)

@@ -640,10 +640,10 @@

Math colformat_md() %>% flextable::autofit(add_w = 0.2)
- - - - + +

math

eiθ = cos θ + isin θ

+ +

math

eiθ = cos θ + isin θ

Note that results can be insufficient. This feature relies on @@ -663,10 +663,10 @@

Emoji flextable() %>% colformat_md(md_extensions = "+emoji")
- - - - + +

emoji

👍

+ +

emoji

👍

@@ -683,10 +683,10 @@

Other input formatsflextable() %>% colformat_md(.from = "html")
- - - - + +

x

H2O

+ +

x

H2O

Note that multiple paragraphs are not supported if .from @@ -699,10 +699,10 @@

Other input formatsflextable() %>% colformat_md(.from = "commonmark")
- - - - + +

x

foobar

+ +

x

foobar

diff --git a/docs/articles/group-rows.html b/docs/articles/group-rows.html index 9a8d220..244b6b5 100644 --- a/docs/articles/group-rows.html +++ b/docs/articles/group-rows.html @@ -33,7 +33,7 @@ ftExtra - 0.6.1 + 0.6.3 @@ -119,53 +119,53 @@

Single grouping columns
 grouped_iris %>% as_flextable()
- - + +
- - - - + + + + - + - - - - + + + + - - - - + + + + - + - - - - + + + + - - - - + + + + - + - - - - + + + + - - - - + + + +

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species: setosa

Species: setosa

5.1

3.5

1.4

0.2

5.1

3.5

1.4

0.2

4.9

3.0

1.4

0.2

4.9

3.0

1.4

0.2

Species: versicolor

Species: versicolor

7.0

3.2

4.7

1.4

7.0

3.2

4.7

1.4

6.4

3.2

4.5

1.5

6.4

3.2

4.5

1.5

Species: virginica

Species: virginica

6.3

3.3

6.0

2.5

6.3

3.3

6.0

2.5

5.8

2.7

5.1

1.9

5.8

2.7

5.1

1.9

@@ -173,53 +173,53 @@

Single grouping columns
 grouped_iris %>% as_flextable(hide_grouplabel = TRUE)

- - + +
- - - - + + + + - + - - - - + + + + - - - - + + + + - + - - - - + + + + - - - - + + + + - + - - - - + + + + - - - - + + + +

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

setosa

setosa

5.1

3.5

1.4

0.2

5.1

3.5

1.4

0.2

4.9

3.0

1.4

0.2

4.9

3.0

1.4

0.2

versicolor

versicolor

7.0

3.2

4.7

1.4

7.0

3.2

4.7

1.4

6.4

3.2

4.5

1.5

6.4

3.2

4.5

1.5

virginica

virginica

6.3

3.3

6.0

2.5

6.3

3.3

6.0

2.5

5.8

2.7

5.1

1.9

5.8

2.7

5.1

1.9

@@ -231,53 +231,53 @@

Multiple grouping columns
 grouped_mtcars %>% as_flextable()

- - + +
- - - + + + - - + + - - - + + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + +

model

mpg

disp

model

mpg

disp

am: 1.0

cyl: 6.0

am: 1.0

cyl: 6.0

Mazda RX4

21.0

160

Mazda RX4

21.0

160

Mazda RX4 Wag

21.0

160

Mazda RX4 Wag

21.0

160

am: 1.0

cyl: 4.0

am: 1.0

cyl: 4.0

Datsun 710

22.8

108

Datsun 710

22.8

108

am: 0.0

cyl: 6.0

am: 0.0

cyl: 6.0

Hornet 4 Drive

21.4

258

Hornet 4 Drive

21.4

258

am: 0.0

cyl: 8.0

am: 0.0

cyl: 8.0

Hornet Sportabout

18.7

360

Hornet Sportabout

18.7

360

am: 0.0

cyl: 6.0

am: 0.0

cyl: 6.0

Valiant

18.1

225

Valiant

18.1

225

@@ -301,54 +301,54 @@

Single grouping variable#> the future release. Consider using flextalbe's implementation by running #> `.S3method("as_flextable", "data.frame", flextable:::as_flextable.data.frame)`

- - + +
- - - - - + + + + + - - - - - + + + + + - - - - + + + + - - - - - + + + + + - - - - + + + + - - - - - + + + + + - - - - + + + +

Species

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

setosa

5.1

3.5

1.4

0.2

setosa

5.1

3.5

1.4

0.2

4.9

3.0

1.4

0.2

4.9

3.0

1.4

0.2

versicolor

7.0

3.2

4.7

1.4

versicolor

7.0

3.2

4.7

1.4

6.4

3.2

4.5

1.5

6.4

3.2

4.5

1.5

virginica

6.3

3.3

6.0

2.5

virginica

6.3

3.3

6.0

2.5

5.8

2.7

5.1

1.9

5.8

2.7

5.1

1.9

@@ -364,51 +364,51 @@

Multiple grouping variables#> the future release. Consider using flextalbe's implementation by running #> `.S3method("as_flextable", "data.frame", flextable:::as_flextable.data.frame)`

- - + +
- - - - - + + + + + - - - - - + + + + + - - - + + + - - - - + + + + - - - - - + + + + + - - - - + + + + - - - + + +

am

cyl

model

mpg

disp

am

cyl

model

mpg

disp

0

6

Hornet 4 Drive

21.4

258

0

6

Hornet 4 Drive

21.4

258

Valiant

18.1

225

Valiant

18.1

225

8

Hornet Sportabout

18.7

360

8

Hornet Sportabout

18.7

360

1

4

Datsun 710

22.8

108

1

4

Datsun 710

22.8

108

6

Mazda RX4

21.0

160

6

Mazda RX4

21.0

160

Mazda RX4 Wag

21.0

160

Mazda RX4 Wag

21.0

160

@@ -420,52 +420,52 @@

Multiple grouping variables#> the future release. Consider using flextalbe's implementation by running #> `.S3method("as_flextable", "data.frame", flextable:::as_flextable.data.frame)`

- - + +
- - - - - + + + + + - - - - - + + + + + - - - + + + - - - - + + + + - - - - - + + + + + - - - - + + + + - - - - + + + +

am

cyl

model

mpg

disp

am

cyl

model

mpg

disp

1

6

Mazda RX4

21.0

160

1

6

Mazda RX4

21.0

160

Mazda RX4 Wag

21.0

160

Mazda RX4 Wag

21.0

160

4

Datsun 710

22.8

108

4

Datsun 710

22.8

108

0

6

Hornet 4 Drive

21.4

258

0

6

Hornet 4 Drive

21.4

258

8

Hornet Sportabout

18.7

360

8

Hornet Sportabout

18.7

360

6

Valiant

18.1

225

6

Valiant

18.1

225

@@ -484,52 +484,52 @@

Position of grouping variables#> the future release. Consider using flextalbe's implementation by running #> `.S3method("as_flextable", "data.frame", flextable:::as_flextable.data.frame)`

- - + +
- - - - - + + + + + - - - - - + + + + + - - - + + + - - - - + + + + - - - - - + + + + + - - - - + + + + - - - - + + + +

model

cyl

mpg

disp

am

model

cyl

mpg

disp

am

Mazda RX4

6

21.0

160

1

Mazda RX4

6

21.0

160

1

Mazda RX4 Wag

21.0

160

Mazda RX4 Wag

21.0

160

Datsun 710

4

22.8

108

Datsun 710

4

22.8

108

Hornet 4 Drive

6

21.4

258

0

Hornet 4 Drive

6

21.4

258

0

Hornet Sportabout

8

18.7

360

Hornet Sportabout

8

18.7

360

Valiant

6

18.1

225

Valiant

6

18.1

225

diff --git a/docs/articles/index.html b/docs/articles/index.html index 26997e8..001374f 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -17,7 +17,7 @@
ftExtra - 0.6.1 + 0.6.3
diff --git a/docs/articles/transform-headers.html b/docs/articles/transform-headers.html index fa75ecd..cfcdc49 100644 --- a/docs/articles/transform-headers.html +++ b/docs/articles/transform-headers.html @@ -33,7 +33,7 @@ ftExtra - 0.6.1 + 0.6.3 @@ -108,29 +108,29 @@

Prepare flextableft <- iris[1:2, ] %>% flextable() ft
- - + +
- - - - - + + + + + - - - - - + + + + + - - - - - + + + + +

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species

5.1

3.5

1.4

0.2

setosa

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

@@ -144,38 +144,38 @@

Split headers
 ft %>% split_header()

- - + +
- - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + +

Sepal

Sepal

Petal

Petal

Species

Sepal

Sepal

Petal

Petal

Species

Length

Width

Length

Width

Length

Width

Length

Width

5.1

3.5

1.4

0.2

setosa

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

@@ -186,45 +186,45 @@

Split headers
 ft %>% split_header(sep = "e")

- - + +
- - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + +

S

S

P

P

Sp

S

S

P

P

Sp

pal.L

pal.Width

tal.L

tal.Width

ci

pal.L

pal.Width

tal.L

tal.Width

ci

ngth

ngth

s

ngth

ngth

s

5.1

3.5

1.4

0.2

setosa

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

@@ -240,35 +240,35 @@

Span headers
 ft %>% span_header()

- - + +
- - - + + + - - - - + + + + - - - - - + + + + + - - - - - + + + + +

Sepal

Petal

Species

Sepal

Petal

Species

Length

Width

Length

Width

Length

Width

Length

Width

5.1

3.5

1.4

0.2

setosa

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

diff --git a/docs/authors.html b/docs/authors.html index 91afad0..13a982c 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -17,7 +17,7 @@ ftExtra - 0.6.1 + 0.6.3
@@ -91,13 +91,13 @@

Citation

Yasumoto A (2024). ftExtra: Extensions for 'Flextable'. -R package version 0.6.1, https://github.com/atusy/ftExtra, https://ftextra.atusy.net. +R package version 0.6.3, https://github.com/atusy/ftExtra, https://ftextra.atusy.net.

@Manual{,
   title = {ftExtra: Extensions for 'Flextable'},
   author = {Atsushi Yasumoto},
   year = {2024},
-  note = {R package version 0.6.1, https://github.com/atusy/ftExtra},
+  note = {R package version 0.6.3, https://github.com/atusy/ftExtra},
   url = {https://ftextra.atusy.net},
 }
diff --git a/docs/index.html b/docs/index.html index 0fac09f..2f58269 100644 --- a/docs/index.html +++ b/docs/index.html @@ -35,7 +35,7 @@ ftExtra - 0.6.1 + 0.6.3 @@ -130,7 +130,7 @@

Parse markdown texts= c("***~ft~^Extra^** is*", "*Cool*"), stringsAsFactors = FALSE ) %>% - as_flextable() %>% + flextable() %>% colformat_md()

@@ -140,7 +140,7 @@

Span headers
 iris %>%
   head %>%
-  as_flextable() %>%
+  flextable() %>%
   span_header()

@@ -152,7 +152,7 @@

Group rowsiris %>% group_by(Species) %>% slice(1:2) %>% - as_flextable() + flextable()

diff --git a/docs/news/index.html b/docs/news/index.html index 9c1a3ca..dc3fc54 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -17,7 +17,7 @@ ftExtra - 0.6.1 + 0.6.3 @@ -64,8 +64,12 @@

Changelog

- +
  • Require flextable>=0.9.5 to fix broken colformat_md (#101)
  • +
+
+ +
  • Avoid error from using horizontal rule (#98)
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index f950acf..d0cc08b 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -5,5 +5,5 @@ articles: format_columns: format_columns.html group-rows: group-rows.html transform-headers: transform-headers.html -last_built: 2024-03-31T12:21Z +last_built: 2024-03-31T14:41Z diff --git a/docs/reference/as_flextable_methods.html b/docs/reference/as_flextable_methods.html index 72f7bef..fbab8ce 100644 --- a/docs/reference/as_flextable_methods.html +++ b/docs/reference/as_flextable_methods.html @@ -21,7 +21,7 @@ ftExtra - 0.6.1 + 0.6.3
@@ -150,17 +150,17 @@

Examples

dplyr::slice(1, 2) as_flextable(grouped_df, groups_to = "titles") -

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species: setosa

5.1

3.5

1.4

0.2

4.9

3.0

1.4

0.2

Species: versicolor

7.0

3.2

4.7

1.4

6.4

3.2

4.5

1.5

Species: virginica

6.3

3.3

6.0

2.5

5.8

2.7

5.1

1.9

as_flextable(grouped_df, groups_to = "titles", hide_grouplabel = TRUE) -

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

setosa

5.1

3.5

1.4

0.2

4.9

3.0

1.4

0.2

versicolor

7.0

3.2

4.7

1.4

6.4

3.2

4.5

1.5

virginica

6.3

3.3

6.0

2.5

5.8

2.7

5.1

1.9

as_flextable(grouped_df, groups_to = "merged") +

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species: setosa

5.1

3.5

1.4

0.2

4.9

3.0

1.4

0.2

Species: versicolor

7.0

3.2

4.7

1.4

6.4

3.2

4.5

1.5

Species: virginica

6.3

3.3

6.0

2.5

5.8

2.7

5.1

1.9

as_flextable(grouped_df, groups_to = "titles", hide_grouplabel = TRUE) +

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

setosa

5.1

3.5

1.4

0.2

4.9

3.0

1.4

0.2

versicolor

7.0

3.2

4.7

1.4

6.4

3.2

4.5

1.5

virginica

6.3

3.3

6.0

2.5

5.8

2.7

5.1

1.9

as_flextable(grouped_df, groups_to = "merged") #> Warning: ftExtra:::as_flextable.data.frame is deprecated and will be removed in the future release. Consider using flextalbe's implementation by running `.S3method("as_flextable", "data.frame", flextable:::as_flextable.data.frame)` -

Species

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

setosa

5.1

3.5

1.4

0.2

4.9

3.0

1.4

0.2

versicolor

7.0

3.2

4.7

1.4

6.4

3.2

4.5

1.5

virginica

6.3

3.3

6.0

2.5

5.8

2.7

5.1

1.9

as_flextable(grouped_df, groups_to = "asis") +

Species

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

setosa

5.1

3.5

1.4

0.2

4.9

3.0

1.4

0.2

versicolor

7.0

3.2

4.7

1.4

6.4

3.2

4.5

1.5

virginica

6.3

3.3

6.0

2.5

5.8

2.7

5.1

1.9

as_flextable(grouped_df, groups_to = "asis") #> Warning: ftExtra:::as_flextable.data.frame is deprecated and will be removed in the future release. Consider using flextalbe's implementation by running `.S3method("as_flextable", "data.frame", flextable:::as_flextable.data.frame)` -

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

7.0

3.2

4.7

1.4

versicolor

6.4

3.2

4.5

1.5

versicolor

6.3

3.3

6.0

2.5

virginica

5.8

2.7

5.1

1.9

virginica

# For data.frame +

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

7.0

3.2

4.7

1.4

versicolor

6.4

3.2

4.5

1.5

versicolor

6.3

3.3

6.0

2.5

virginica

5.8

2.7

5.1

1.9

virginica

# For data.frame iris %>% head() %>% as_flextable() #> Warning: ftExtra:::as_flextable.data.frame is deprecated and will be removed in the future release. Consider using flextalbe's implementation by running `.S3method("as_flextable", "data.frame", flextable:::as_flextable.data.frame)` -

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.7

3.2

1.3

0.2

setosa

4.6

3.1

1.5

0.2

setosa

5.0

3.6

1.4

0.2

setosa

5.4

3.9

1.7

0.4

setosa

+

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.7

3.2

1.3

0.2

setosa

4.6

3.1

1.5

0.2

setosa

5.0

3.6

1.4

0.2

setosa

5.4

3.9

1.7

0.4

setosa

@@ -143,7 +143,7 @@

Examples

#> The following object is masked from ‘package:ftExtra’: #> #> separate_header -

x

foo bar

baz

*qux*

+

x

foo bar

baz

*qux*

@@ -147,7 +147,7 @@

Examples

) colformat_md(flextable::flextable(d)) } -

x

y

z

bold

superscript

ftExtra is

italic

subscript

Cool

+

x

y

z

bold

superscript

ftExtra is

italic

subscript

Cool

@@ -136,9 +136,10 @@

Examples

.footnote_options = footnote_options("1", start = 1L) ) } -

header11

header2

x2

a

y

b3

1note a

2note 1

3note 2

+

header11

header2

x2

a

y

b3

1note a

2note 1

3note 2

# Use a user-defined function to format footnote symbols -if (rmarkdown::pandoc_available("2.0.6")) { +# Skipped to reduce build time +if (FALSE) { # a function to format symbols of footnote references ref <- function(n, part, footer) { # Change symbols by context @@ -172,7 +173,7 @@

Examples

# tweak width for visibility flextable::autofit(add_w = 0.2) } -

header1a

header2

x1

a

y

b2

a: note a

1: note 1

2: note 2

+ diff --git a/docs/reference/reexports.html b/docs/reference/reexports.html index 1e8fdc7..f0df42a 100644 --- a/docs/reference/reexports.html +++ b/docs/reference/reexports.html @@ -28,7 +28,7 @@ ftExtra - 0.6.1 + 0.6.3 diff --git a/docs/reference/span_header.html b/docs/reference/span_header.html index 8199856..c4d4e8a 100644 --- a/docs/reference/span_header.html +++ b/docs/reference/span_header.html @@ -17,7 +17,7 @@ ftExtra - 0.6.1 + 0.6.3 @@ -109,7 +109,7 @@

Examples

iris %>%
   flextable() %>%
   span_header()
-

Sepal

Petal

Species

Length

Width

Length

Width

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.7

3.2

1.3

0.2

setosa

4.6

3.1

1.5

0.2

setosa

5.0

3.6

1.4

0.2

setosa

5.4

3.9

1.7

0.4

setosa

4.6

3.4

1.4

0.3

setosa

5.0

3.4

1.5

0.2

setosa

4.4

2.9

1.4

0.2

setosa

4.9

3.1

1.5

0.1

setosa

5.4

3.7

1.5

0.2

setosa

4.8

3.4

1.6

0.2

setosa

4.8

3.0

1.4

0.1

setosa

4.3

3.0

1.1

0.1

setosa

5.8

4.0

1.2

0.2

setosa

5.7

4.4

1.5

0.4

setosa

5.4

3.9

1.3

0.4

setosa

5.1

3.5

1.4

0.3

setosa

5.7

3.8

1.7

0.3

setosa

5.1

3.8

1.5

0.3

setosa

5.4

3.4

1.7

0.2

setosa

5.1

3.7

1.5

0.4

setosa

4.6

3.6

1.0

0.2

setosa

5.1

3.3

1.7

0.5

setosa

4.8

3.4

1.9

0.2

setosa

5.0

3.0

1.6

0.2

setosa

5.0

3.4

1.6

0.4

setosa

5.2

3.5

1.5

0.2

setosa

5.2

3.4

1.4

0.2

setosa

4.7

3.2

1.6

0.2

setosa

4.8

3.1

1.6

0.2

setosa

5.4

3.4

1.5

0.4

setosa

5.2

4.1

1.5

0.1

setosa

5.5

4.2

1.4

0.2

setosa

4.9

3.1

1.5

0.2

setosa

5.0

3.2

1.2

0.2

setosa

5.5

3.5

1.3

0.2

setosa

4.9

3.6

1.4

0.1

setosa

4.4

3.0

1.3

0.2

setosa

5.1

3.4

1.5

0.2

setosa

5.0

3.5

1.3

0.3

setosa

4.5

2.3

1.3

0.3

setosa

4.4

3.2

1.3

0.2

setosa

5.0

3.5

1.6

0.6

setosa

5.1

3.8

1.9

0.4

setosa

4.8

3.0

1.4

0.3

setosa

5.1

3.8

1.6

0.2

setosa

4.6

3.2

1.4

0.2

setosa

5.3

3.7

1.5

0.2

setosa

5.0

3.3

1.4

0.2

setosa

7.0

3.2

4.7

1.4

versicolor

6.4

3.2

4.5

1.5

versicolor

6.9

3.1

4.9

1.5

versicolor

5.5

2.3

4.0

1.3

versicolor

6.5

2.8

4.6

1.5

versicolor

5.7

2.8

4.5

1.3

versicolor

6.3

3.3

4.7

1.6

versicolor

4.9

2.4

3.3

1.0

versicolor

6.6

2.9

4.6

1.3

versicolor

5.2

2.7

3.9

1.4

versicolor

5.0

2.0

3.5

1.0

versicolor

5.9

3.0

4.2

1.5

versicolor

6.0

2.2

4.0

1.0

versicolor

6.1

2.9

4.7

1.4

versicolor

5.6

2.9

3.6

1.3

versicolor

6.7

3.1

4.4

1.4

versicolor

5.6

3.0

4.5

1.5

versicolor

5.8

2.7

4.1

1.0

versicolor

6.2

2.2

4.5

1.5

versicolor

5.6

2.5

3.9

1.1

versicolor

5.9

3.2

4.8

1.8

versicolor

6.1

2.8

4.0

1.3

versicolor

6.3

2.5

4.9

1.5

versicolor

6.1

2.8

4.7

1.2

versicolor

6.4

2.9

4.3

1.3

versicolor

6.6

3.0

4.4

1.4

versicolor

6.8

2.8

4.8

1.4

versicolor

6.7

3.0

5.0

1.7

versicolor

6.0

2.9

4.5

1.5

versicolor

5.7

2.6

3.5

1.0

versicolor

5.5

2.4

3.8

1.1

versicolor

5.5

2.4

3.7

1.0

versicolor

5.8

2.7

3.9

1.2

versicolor

6.0

2.7

5.1

1.6

versicolor

5.4

3.0

4.5

1.5

versicolor

6.0

3.4

4.5

1.6

versicolor

6.7

3.1

4.7

1.5

versicolor

6.3

2.3

4.4

1.3

versicolor

5.6

3.0

4.1

1.3

versicolor

5.5

2.5

4.0

1.3

versicolor

5.5

2.6

4.4

1.2

versicolor

6.1

3.0

4.6

1.4

versicolor

5.8

2.6

4.0

1.2

versicolor

5.0

2.3

3.3

1.0

versicolor

5.6

2.7

4.2

1.3

versicolor

5.7

3.0

4.2

1.2

versicolor

5.7

2.9

4.2

1.3

versicolor

6.2

2.9

4.3

1.3

versicolor

5.1

2.5

3.0

1.1

versicolor

5.7

2.8

4.1

1.3

versicolor

6.3

3.3

6.0

2.5

virginica

5.8

2.7

5.1

1.9

virginica

7.1

3.0

5.9

2.1

virginica

6.3

2.9

5.6

1.8

virginica

6.5

3.0

5.8

2.2

virginica

7.6

3.0

6.6

2.1

virginica

4.9

2.5

4.5

1.7

virginica

7.3

2.9

6.3

1.8

virginica

6.7

2.5

5.8

1.8

virginica

7.2

3.6

6.1

2.5

virginica

6.5

3.2

5.1

2.0

virginica

6.4

2.7

5.3

1.9

virginica

6.8

3.0

5.5

2.1

virginica

5.7

2.5

5.0

2.0

virginica

5.8

2.8

5.1

2.4

virginica

6.4

3.2

5.3

2.3

virginica

6.5

3.0

5.5

1.8

virginica

7.7

3.8

6.7

2.2

virginica

7.7

2.6

6.9

2.3

virginica

6.0

2.2

5.0

1.5

virginica

6.9

3.2

5.7

2.3

virginica

5.6

2.8

4.9

2.0

virginica

7.7

2.8

6.7

2.0

virginica

6.3

2.7

4.9

1.8

virginica

6.7

3.3

5.7

2.1

virginica

7.2

3.2

6.0

1.8

virginica

6.2

2.8

4.8

1.8

virginica

6.1

3.0

4.9

1.8

virginica

6.4

2.8

5.6

2.1

virginica

7.2

3.0

5.8

1.6

virginica

7.4

2.8

6.1

1.9

virginica

7.9

3.8

6.4

2.0

virginica

6.4

2.8

5.6

2.2

virginica

6.3

2.8

5.1

1.5

virginica

6.1

2.6

5.6

1.4

virginica

7.7

3.0

6.1

2.3

virginica

6.3

3.4

5.6

2.4

virginica

6.4

3.1

5.5

1.8

virginica

6.0

3.0

4.8

1.8

virginica

6.9

3.1

5.4

2.1

virginica

6.7

3.1

5.6

2.4

virginica

6.9

3.1

5.1

2.3

virginica

5.8

2.7

5.1

1.9

virginica

6.8

3.2

5.9

2.3

virginica

6.7

3.3

5.7

2.5

virginica

6.7

3.0

5.2

2.3

virginica

6.3

2.5

5.0

1.9

virginica

6.5

3.0

5.2

2.0

virginica

6.2

3.4

5.4

2.3

virginica

5.9

3.0

5.1

1.8

virginica

+

Sepal

Petal

Species

Length

Width

Length

Width

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.7

3.2

1.3

0.2

setosa

4.6

3.1

1.5

0.2

setosa

5.0

3.6

1.4

0.2

setosa

5.4

3.9

1.7

0.4

setosa

4.6

3.4

1.4

0.3

setosa

5.0

3.4

1.5

0.2

setosa

4.4

2.9

1.4

0.2

setosa

4.9

3.1

1.5

0.1

setosa

5.4

3.7

1.5

0.2

setosa

4.8

3.4

1.6

0.2

setosa

4.8

3.0

1.4

0.1

setosa

4.3

3.0

1.1

0.1

setosa

5.8

4.0

1.2

0.2

setosa

5.7

4.4

1.5

0.4

setosa

5.4

3.9

1.3

0.4

setosa

5.1

3.5

1.4

0.3

setosa

5.7

3.8

1.7

0.3

setosa

5.1

3.8

1.5

0.3

setosa

5.4

3.4

1.7

0.2

setosa

5.1

3.7

1.5

0.4

setosa

4.6

3.6

1.0

0.2

setosa

5.1

3.3

1.7

0.5

setosa

4.8

3.4

1.9

0.2

setosa

5.0

3.0

1.6

0.2

setosa

5.0

3.4

1.6

0.4

setosa

5.2

3.5

1.5

0.2

setosa

5.2

3.4

1.4

0.2

setosa

4.7

3.2

1.6

0.2

setosa

4.8

3.1

1.6

0.2

setosa

5.4

3.4

1.5

0.4

setosa

5.2

4.1

1.5

0.1

setosa

5.5

4.2

1.4

0.2

setosa

4.9

3.1

1.5

0.2

setosa

5.0

3.2

1.2

0.2

setosa

5.5

3.5

1.3

0.2

setosa

4.9

3.6

1.4

0.1

setosa

4.4

3.0

1.3

0.2

setosa

5.1

3.4

1.5

0.2

setosa

5.0

3.5

1.3

0.3

setosa

4.5

2.3

1.3

0.3

setosa

4.4

3.2

1.3

0.2

setosa

5.0

3.5

1.6

0.6

setosa

5.1

3.8

1.9

0.4

setosa

4.8

3.0

1.4

0.3

setosa

5.1

3.8

1.6

0.2

setosa

4.6

3.2

1.4

0.2

setosa

5.3

3.7

1.5

0.2

setosa

5.0

3.3

1.4

0.2

setosa

7.0

3.2

4.7

1.4

versicolor

6.4

3.2

4.5

1.5

versicolor

6.9

3.1

4.9

1.5

versicolor

5.5

2.3

4.0

1.3

versicolor

6.5

2.8

4.6

1.5

versicolor

5.7

2.8

4.5

1.3

versicolor

6.3

3.3

4.7

1.6

versicolor

4.9

2.4

3.3

1.0

versicolor

6.6

2.9

4.6

1.3

versicolor

5.2

2.7

3.9

1.4

versicolor

5.0

2.0

3.5

1.0

versicolor

5.9

3.0

4.2

1.5

versicolor

6.0

2.2

4.0

1.0

versicolor

6.1

2.9

4.7

1.4

versicolor

5.6

2.9

3.6

1.3

versicolor

6.7

3.1

4.4

1.4

versicolor

5.6

3.0

4.5

1.5

versicolor

5.8

2.7

4.1

1.0

versicolor

6.2

2.2

4.5

1.5

versicolor

5.6

2.5

3.9

1.1

versicolor

5.9

3.2

4.8

1.8

versicolor

6.1

2.8

4.0

1.3

versicolor

6.3

2.5

4.9

1.5

versicolor

6.1

2.8

4.7

1.2

versicolor

6.4

2.9

4.3

1.3

versicolor

6.6

3.0

4.4

1.4

versicolor

6.8

2.8

4.8

1.4

versicolor

6.7

3.0

5.0

1.7

versicolor

6.0

2.9

4.5

1.5

versicolor

5.7

2.6

3.5

1.0

versicolor

5.5

2.4

3.8

1.1

versicolor

5.5

2.4

3.7

1.0

versicolor

5.8

2.7

3.9

1.2

versicolor

6.0

2.7

5.1

1.6

versicolor

5.4

3.0

4.5

1.5

versicolor

6.0

3.4

4.5

1.6

versicolor

6.7

3.1

4.7

1.5

versicolor

6.3

2.3

4.4

1.3

versicolor

5.6

3.0

4.1

1.3

versicolor

5.5

2.5

4.0

1.3

versicolor

5.5

2.6

4.4

1.2

versicolor

6.1

3.0

4.6

1.4

versicolor

5.8

2.6

4.0

1.2

versicolor

5.0

2.3

3.3

1.0

versicolor

5.6

2.7

4.2

1.3

versicolor

5.7

3.0

4.2

1.2

versicolor

5.7

2.9

4.2

1.3

versicolor

6.2

2.9

4.3

1.3

versicolor

5.1

2.5

3.0

1.1

versicolor

5.7

2.8

4.1

1.3

versicolor

6.3

3.3

6.0

2.5

virginica

5.8

2.7

5.1

1.9

virginica

7.1

3.0

5.9

2.1

virginica

6.3

2.9

5.6

1.8

virginica

6.5

3.0

5.8

2.2

virginica

7.6

3.0

6.6

2.1

virginica

4.9

2.5

4.5

1.7

virginica

7.3

2.9

6.3

1.8

virginica

6.7

2.5

5.8

1.8

virginica

7.2

3.6

6.1

2.5

virginica

6.5

3.2

5.1

2.0

virginica

6.4

2.7

5.3

1.9

virginica

6.8

3.0

5.5

2.1

virginica

5.7

2.5

5.0

2.0

virginica

5.8

2.8

5.1

2.4

virginica

6.4

3.2

5.3

2.3

virginica

6.5

3.0

5.5

1.8

virginica

7.7

3.8

6.7

2.2

virginica

7.7

2.6

6.9

2.3

virginica

6.0

2.2

5.0

1.5

virginica

6.9

3.2

5.7

2.3

virginica

5.6

2.8

4.9

2.0

virginica

7.7

2.8

6.7

2.0

virginica

6.3

2.7

4.9

1.8

virginica

6.7

3.3

5.7

2.1

virginica

7.2

3.2

6.0

1.8

virginica

6.2

2.8

4.8

1.8

virginica

6.1

3.0

4.9

1.8

virginica

6.4

2.8

5.6

2.1

virginica

7.2

3.0

5.8

1.6

virginica

7.4

2.8

6.1

1.9

virginica

7.9

3.8

6.4

2.0

virginica

6.4

2.8

5.6

2.2

virginica

6.3

2.8

5.1

1.5

virginica

6.1

2.6

5.6

1.4

virginica

7.7

3.0

6.1

2.3

virginica

6.3

3.4

5.6

2.4

virginica

6.4

3.1

5.5

1.8

virginica

6.0

3.0

4.8

1.8

virginica

6.9

3.1

5.4

2.1

virginica

6.7

3.1

5.6

2.4

virginica

6.9

3.1

5.1

2.3

virginica

5.8

2.7

5.1

1.9

virginica

6.8

3.2

5.9

2.3

virginica

6.7

3.3

5.7

2.5

virginica

6.7

3.0

5.2

2.3

virginica

6.3

2.5

5.0

1.9

virginica

6.5

3.0

5.2

2.0

virginica

6.2

3.4

5.4

2.3

virginica

5.9

3.0

5.1

1.8

virginica

@@ -111,7 +111,7 @@

Examples

iris %>%
   flextable() %>%
   separate_header()
-

Sepal

Petal

Species

Length

Width

Length

Width

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.7

3.2

1.3

0.2

setosa

4.6

3.1

1.5

0.2

setosa

5.0

3.6

1.4

0.2

setosa

5.4

3.9

1.7

0.4

setosa

4.6

3.4

1.4

0.3

setosa

5.0

3.4

1.5

0.2

setosa

4.4

2.9

1.4

0.2

setosa

4.9

3.1

1.5

0.1

setosa

5.4

3.7

1.5

0.2

setosa

4.8

3.4

1.6

0.2

setosa

4.8

3.0

1.4

0.1

setosa

4.3

3.0

1.1

0.1

setosa

5.8

4.0

1.2

0.2

setosa

5.7

4.4

1.5

0.4

setosa

5.4

3.9

1.3

0.4

setosa

5.1

3.5

1.4

0.3

setosa

5.7

3.8

1.7

0.3

setosa

5.1

3.8

1.5

0.3

setosa

5.4

3.4

1.7

0.2

setosa

5.1

3.7

1.5

0.4

setosa

4.6

3.6

1.0

0.2

setosa

5.1

3.3

1.7

0.5

setosa

4.8

3.4

1.9

0.2

setosa

5.0

3.0

1.6

0.2

setosa

5.0

3.4

1.6

0.4

setosa

5.2

3.5

1.5

0.2

setosa

5.2

3.4

1.4

0.2

setosa

4.7

3.2

1.6

0.2

setosa

4.8

3.1

1.6

0.2

setosa

5.4

3.4

1.5

0.4

setosa

5.2

4.1

1.5

0.1

setosa

5.5

4.2

1.4

0.2

setosa

4.9

3.1

1.5

0.2

setosa

5.0

3.2

1.2

0.2

setosa

5.5

3.5

1.3

0.2

setosa

4.9

3.6

1.4

0.1

setosa

4.4

3.0

1.3

0.2

setosa

5.1

3.4

1.5

0.2

setosa

5.0

3.5

1.3

0.3

setosa

4.5

2.3

1.3

0.3

setosa

4.4

3.2

1.3

0.2

setosa

5.0

3.5

1.6

0.6

setosa

5.1

3.8

1.9

0.4

setosa

4.8

3.0

1.4

0.3

setosa

5.1

3.8

1.6

0.2

setosa

4.6

3.2

1.4

0.2

setosa

5.3

3.7

1.5

0.2

setosa

5.0

3.3

1.4

0.2

setosa

7.0

3.2

4.7

1.4

versicolor

6.4

3.2

4.5

1.5

versicolor

6.9

3.1

4.9

1.5

versicolor

5.5

2.3

4.0

1.3

versicolor

6.5

2.8

4.6

1.5

versicolor

5.7

2.8

4.5

1.3

versicolor

6.3

3.3

4.7

1.6

versicolor

4.9

2.4

3.3

1.0

versicolor

6.6

2.9

4.6

1.3

versicolor

5.2

2.7

3.9

1.4

versicolor

5.0

2.0

3.5

1.0

versicolor

5.9

3.0

4.2

1.5

versicolor

6.0

2.2

4.0

1.0

versicolor

6.1

2.9

4.7

1.4

versicolor

5.6

2.9

3.6

1.3

versicolor

6.7

3.1

4.4

1.4

versicolor

5.6

3.0

4.5

1.5

versicolor

5.8

2.7

4.1

1.0

versicolor

6.2

2.2

4.5

1.5

versicolor

5.6

2.5

3.9

1.1

versicolor

5.9

3.2

4.8

1.8

versicolor

6.1

2.8

4.0

1.3

versicolor

6.3

2.5

4.9

1.5

versicolor

6.1

2.8

4.7

1.2

versicolor

6.4

2.9

4.3

1.3

versicolor

6.6

3.0

4.4

1.4

versicolor

6.8

2.8

4.8

1.4

versicolor

6.7

3.0

5.0

1.7

versicolor

6.0

2.9

4.5

1.5

versicolor

5.7

2.6

3.5

1.0

versicolor

5.5

2.4

3.8

1.1

versicolor

5.5

2.4

3.7

1.0

versicolor

5.8

2.7

3.9

1.2

versicolor

6.0

2.7

5.1

1.6

versicolor

5.4

3.0

4.5

1.5

versicolor

6.0

3.4

4.5

1.6

versicolor

6.7

3.1

4.7

1.5

versicolor

6.3

2.3

4.4

1.3

versicolor

5.6

3.0

4.1

1.3

versicolor

5.5

2.5

4.0

1.3

versicolor

5.5

2.6

4.4

1.2

versicolor

6.1

3.0

4.6

1.4

versicolor

5.8

2.6

4.0

1.2

versicolor

5.0

2.3

3.3

1.0

versicolor

5.6

2.7

4.2

1.3

versicolor

5.7

3.0

4.2

1.2

versicolor

5.7

2.9

4.2

1.3

versicolor

6.2

2.9

4.3

1.3

versicolor

5.1

2.5

3.0

1.1

versicolor

5.7

2.8

4.1

1.3

versicolor

6.3

3.3

6.0

2.5

virginica

5.8

2.7

5.1

1.9

virginica

7.1

3.0

5.9

2.1

virginica

6.3

2.9

5.6

1.8

virginica

6.5

3.0

5.8

2.2

virginica

7.6

3.0

6.6

2.1

virginica

4.9

2.5

4.5

1.7

virginica

7.3

2.9

6.3

1.8

virginica

6.7

2.5

5.8

1.8

virginica

7.2

3.6

6.1

2.5

virginica

6.5

3.2

5.1

2.0

virginica

6.4

2.7

5.3

1.9

virginica

6.8

3.0

5.5

2.1

virginica

5.7

2.5

5.0

2.0

virginica

5.8

2.8

5.1

2.4

virginica

6.4

3.2

5.3

2.3

virginica

6.5

3.0

5.5

1.8

virginica

7.7

3.8

6.7

2.2

virginica

7.7

2.6

6.9

2.3

virginica

6.0

2.2

5.0

1.5

virginica

6.9

3.2

5.7

2.3

virginica

5.6

2.8

4.9

2.0

virginica

7.7

2.8

6.7

2.0

virginica

6.3

2.7

4.9

1.8

virginica

6.7

3.3

5.7

2.1

virginica

7.2

3.2

6.0

1.8

virginica

6.2

2.8

4.8

1.8

virginica

6.1

3.0

4.9

1.8

virginica

6.4

2.8

5.6

2.1

virginica

7.2

3.0

5.8

1.6

virginica

7.4

2.8

6.1

1.9

virginica

7.9

3.8

6.4

2.0

virginica

6.4

2.8

5.6

2.2

virginica

6.3

2.8

5.1

1.5

virginica

6.1

2.6

5.6

1.4

virginica

7.7

3.0

6.1

2.3

virginica

6.3

3.4

5.6

2.4

virginica

6.4

3.1

5.5

1.8

virginica

6.0

3.0

4.8

1.8

virginica

6.9

3.1

5.4

2.1

virginica

6.7

3.1

5.6

2.4

virginica

6.9

3.1

5.1

2.3

virginica

5.8

2.7

5.1

1.9

virginica

6.8

3.2

5.9

2.3

virginica

6.7

3.3

5.7

2.5

virginica

6.7

3.0

5.2

2.3

virginica

6.3

2.5

5.0

1.9

virginica

6.5

3.0

5.2

2.0

virginica

6.2

3.4

5.4

2.3

virginica

5.9

3.0

5.1

1.8

virginica

+

Sepal

Petal

Species

Length

Width

Length

Width

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.7

3.2

1.3

0.2

setosa

4.6

3.1

1.5

0.2

setosa

5.0

3.6

1.4

0.2

setosa

5.4

3.9

1.7

0.4

setosa

4.6

3.4

1.4

0.3

setosa

5.0

3.4

1.5

0.2

setosa

4.4

2.9

1.4

0.2

setosa

4.9

3.1

1.5

0.1

setosa

5.4

3.7

1.5

0.2

setosa

4.8

3.4

1.6

0.2

setosa

4.8

3.0

1.4

0.1

setosa

4.3

3.0

1.1

0.1

setosa

5.8

4.0

1.2

0.2

setosa

5.7

4.4

1.5

0.4

setosa

5.4

3.9

1.3

0.4

setosa

5.1

3.5

1.4

0.3

setosa

5.7

3.8

1.7

0.3

setosa

5.1

3.8

1.5

0.3

setosa

5.4

3.4

1.7

0.2

setosa

5.1

3.7

1.5

0.4

setosa

4.6

3.6

1.0

0.2

setosa

5.1

3.3

1.7

0.5

setosa

4.8

3.4

1.9

0.2

setosa

5.0

3.0

1.6

0.2

setosa

5.0

3.4

1.6

0.4

setosa

5.2

3.5

1.5

0.2

setosa

5.2

3.4

1.4

0.2

setosa

4.7

3.2

1.6

0.2

setosa

4.8

3.1

1.6

0.2

setosa

5.4

3.4

1.5

0.4

setosa

5.2

4.1

1.5

0.1

setosa

5.5

4.2

1.4

0.2

setosa

4.9

3.1

1.5

0.2

setosa

5.0

3.2

1.2

0.2

setosa

5.5

3.5

1.3

0.2

setosa

4.9

3.6

1.4

0.1

setosa

4.4

3.0

1.3

0.2

setosa

5.1

3.4

1.5

0.2

setosa

5.0

3.5

1.3

0.3

setosa

4.5

2.3

1.3

0.3

setosa

4.4

3.2

1.3

0.2

setosa

5.0

3.5

1.6

0.6

setosa

5.1

3.8

1.9

0.4

setosa

4.8

3.0

1.4

0.3

setosa

5.1

3.8

1.6

0.2

setosa

4.6

3.2

1.4

0.2

setosa

5.3

3.7

1.5

0.2

setosa

5.0

3.3

1.4

0.2

setosa

7.0

3.2

4.7

1.4

versicolor

6.4

3.2

4.5

1.5

versicolor

6.9

3.1

4.9

1.5

versicolor

5.5

2.3

4.0

1.3

versicolor

6.5

2.8

4.6

1.5

versicolor

5.7

2.8

4.5

1.3

versicolor

6.3

3.3

4.7

1.6

versicolor

4.9

2.4

3.3

1.0

versicolor

6.6

2.9

4.6

1.3

versicolor

5.2

2.7

3.9

1.4

versicolor

5.0

2.0

3.5

1.0

versicolor

5.9

3.0

4.2

1.5

versicolor

6.0

2.2

4.0

1.0

versicolor

6.1

2.9

4.7

1.4

versicolor

5.6

2.9

3.6

1.3

versicolor

6.7

3.1

4.4

1.4

versicolor

5.6

3.0

4.5

1.5

versicolor

5.8

2.7

4.1

1.0

versicolor

6.2

2.2

4.5

1.5

versicolor

5.6

2.5

3.9

1.1

versicolor

5.9

3.2

4.8

1.8

versicolor

6.1

2.8

4.0

1.3

versicolor

6.3

2.5

4.9

1.5

versicolor

6.1

2.8

4.7

1.2

versicolor

6.4

2.9

4.3

1.3

versicolor

6.6

3.0

4.4

1.4

versicolor

6.8

2.8

4.8

1.4

versicolor

6.7

3.0

5.0

1.7

versicolor

6.0

2.9

4.5

1.5

versicolor

5.7

2.6

3.5

1.0

versicolor

5.5

2.4

3.8

1.1

versicolor

5.5

2.4

3.7

1.0

versicolor

5.8

2.7

3.9

1.2

versicolor

6.0

2.7

5.1

1.6

versicolor

5.4

3.0

4.5

1.5

versicolor

6.0

3.4

4.5

1.6

versicolor

6.7

3.1

4.7

1.5

versicolor

6.3

2.3

4.4

1.3

versicolor

5.6

3.0

4.1

1.3

versicolor

5.5

2.5

4.0

1.3

versicolor

5.5

2.6

4.4

1.2

versicolor

6.1

3.0

4.6

1.4

versicolor

5.8

2.6

4.0

1.2

versicolor

5.0

2.3

3.3

1.0

versicolor

5.6

2.7

4.2

1.3

versicolor

5.7

3.0

4.2

1.2

versicolor

5.7

2.9

4.2

1.3

versicolor

6.2

2.9

4.3

1.3

versicolor

5.1

2.5

3.0

1.1

versicolor

5.7

2.8

4.1

1.3

versicolor

6.3

3.3

6.0

2.5

virginica

5.8

2.7

5.1

1.9

virginica

7.1

3.0

5.9

2.1

virginica

6.3

2.9

5.6

1.8

virginica

6.5

3.0

5.8

2.2

virginica

7.6

3.0

6.6

2.1

virginica

4.9

2.5

4.5

1.7

virginica

7.3

2.9

6.3

1.8

virginica

6.7

2.5

5.8

1.8

virginica

7.2

3.6

6.1

2.5

virginica

6.5

3.2

5.1

2.0

virginica

6.4

2.7

5.3

1.9

virginica

6.8

3.0

5.5

2.1

virginica

5.7

2.5

5.0

2.0

virginica

5.8

2.8

5.1

2.4

virginica

6.4

3.2

5.3

2.3

virginica

6.5

3.0

5.5

1.8

virginica

7.7

3.8

6.7

2.2

virginica

7.7

2.6

6.9

2.3

virginica

6.0

2.2

5.0

1.5

virginica

6.9

3.2

5.7

2.3

virginica

5.6

2.8

4.9

2.0

virginica

7.7

2.8

6.7

2.0

virginica

6.3

2.7

4.9

1.8

virginica

6.7

3.3

5.7

2.1

virginica

7.2

3.2

6.0

1.8

virginica

6.2

2.8

4.8

1.8

virginica

6.1

3.0

4.9

1.8

virginica

6.4

2.8

5.6

2.1

virginica

7.2

3.0

5.8

1.6

virginica

7.4

2.8

6.1

1.9

virginica

7.9

3.8

6.4

2.0

virginica

6.4

2.8

5.6

2.2

virginica

6.3

2.8

5.1

1.5

virginica

6.1

2.6

5.6

1.4

virginica

7.7

3.0

6.1

2.3

virginica

6.3

3.4

5.6

2.4

virginica

6.4

3.1

5.5

1.8

virginica

6.0

3.0

4.8

1.8

virginica

6.9

3.1

5.4

2.1

virginica

6.7

3.1

5.6

2.4

virginica

6.9

3.1

5.1

2.3

virginica

5.8

2.7

5.1

1.9

virginica

6.8

3.2

5.9

2.3

virginica

6.7

3.3

5.7

2.5

virginica

6.7

3.0

5.2

2.3

virginica

6.3

2.5

5.0

1.9

virginica

6.5

3.0

5.2

2.0

virginica

6.2

3.4

5.4

2.3

virginica

5.9

3.0

5.1

1.8

virginica

@@ -86,7 +86,7 @@

Examples

as_flextable(col_keys = with_blanks(dplyr::ends_with("Width"))) #> Warning: ftExtra:::as_flextable.data.frame is deprecated and will be removed in the future release. Consider using flextalbe's implementation by running `.S3method("as_flextable", "data.frame", flextable:::as_flextable.data.frame)` #> Warning: This is a result of deprecating ftExtra:::as_flextable.data.frame -

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.7

3.2

1.3

0.2

setosa

4.6

3.1

1.5

0.2

setosa

5.0

3.6

1.4

0.2

setosa

5.4

3.9

1.7

0.4

setosa

4.6

3.4

1.4

0.3

setosa

5.0

3.4

1.5

0.2

setosa

4.4

2.9

1.4

0.2

setosa

4.9

3.1

1.5

0.1

setosa

5.4

3.7

1.5

0.2

setosa

4.8

3.4

1.6

0.2

setosa

4.8

3.0

1.4

0.1

setosa

4.3

3.0

1.1

0.1

setosa

5.8

4.0

1.2

0.2

setosa

5.7

4.4

1.5

0.4

setosa

5.4

3.9

1.3

0.4

setosa

5.1

3.5

1.4

0.3

setosa

5.7

3.8

1.7

0.3

setosa

5.1

3.8

1.5

0.3

setosa

5.4

3.4

1.7

0.2

setosa

5.1

3.7

1.5

0.4

setosa

4.6

3.6

1.0

0.2

setosa

5.1

3.3

1.7

0.5

setosa

4.8

3.4

1.9

0.2

setosa

5.0

3.0

1.6

0.2

setosa

5.0

3.4

1.6

0.4

setosa

5.2

3.5

1.5

0.2

setosa

5.2

3.4

1.4

0.2

setosa

4.7

3.2

1.6

0.2

setosa

4.8

3.1

1.6

0.2

setosa

5.4

3.4

1.5

0.4

setosa

5.2

4.1

1.5

0.1

setosa

5.5

4.2

1.4

0.2

setosa

4.9

3.1

1.5

0.2

setosa

5.0

3.2

1.2

0.2

setosa

5.5

3.5

1.3

0.2

setosa

4.9

3.6

1.4

0.1

setosa

4.4

3.0

1.3

0.2

setosa

5.1

3.4

1.5

0.2

setosa

5.0

3.5

1.3

0.3

setosa

4.5

2.3

1.3

0.3

setosa

4.4

3.2

1.3

0.2

setosa

5.0

3.5

1.6

0.6

setosa

5.1

3.8

1.9

0.4

setosa

4.8

3.0

1.4

0.3

setosa

5.1

3.8

1.6

0.2

setosa

4.6

3.2

1.4

0.2

setosa

5.3

3.7

1.5

0.2

setosa

5.0

3.3

1.4

0.2

setosa

7.0

3.2

4.7

1.4

versicolor

6.4

3.2

4.5

1.5

versicolor

6.9

3.1

4.9

1.5

versicolor

5.5

2.3

4.0

1.3

versicolor

6.5

2.8

4.6

1.5

versicolor

5.7

2.8

4.5

1.3

versicolor

6.3

3.3

4.7

1.6

versicolor

4.9

2.4

3.3

1.0

versicolor

6.6

2.9

4.6

1.3

versicolor

5.2

2.7

3.9

1.4

versicolor

5.0

2.0

3.5

1.0

versicolor

5.9

3.0

4.2

1.5

versicolor

6.0

2.2

4.0

1.0

versicolor

6.1

2.9

4.7

1.4

versicolor

5.6

2.9

3.6

1.3

versicolor

6.7

3.1

4.4

1.4

versicolor

5.6

3.0

4.5

1.5

versicolor

5.8

2.7

4.1

1.0

versicolor

6.2

2.2

4.5

1.5

versicolor

5.6

2.5

3.9

1.1

versicolor

5.9

3.2

4.8

1.8

versicolor

6.1

2.8

4.0

1.3

versicolor

6.3

2.5

4.9

1.5

versicolor

6.1

2.8

4.7

1.2

versicolor

6.4

2.9

4.3

1.3

versicolor

6.6

3.0

4.4

1.4

versicolor

6.8

2.8

4.8

1.4

versicolor

6.7

3.0

5.0

1.7

versicolor

6.0

2.9

4.5

1.5

versicolor

5.7

2.6

3.5

1.0

versicolor

5.5

2.4

3.8

1.1

versicolor

5.5

2.4

3.7

1.0

versicolor

5.8

2.7

3.9

1.2

versicolor

6.0

2.7

5.1

1.6

versicolor

5.4

3.0

4.5

1.5

versicolor

6.0

3.4

4.5

1.6

versicolor

6.7

3.1

4.7

1.5

versicolor

6.3

2.3

4.4

1.3

versicolor

5.6

3.0

4.1

1.3

versicolor

5.5

2.5

4.0

1.3

versicolor

5.5

2.6

4.4

1.2

versicolor

6.1

3.0

4.6

1.4

versicolor

5.8

2.6

4.0

1.2

versicolor

5.0

2.3

3.3

1.0

versicolor

5.6

2.7

4.2

1.3

versicolor

5.7

3.0

4.2

1.2

versicolor

5.7

2.9

4.2

1.3

versicolor

6.2

2.9

4.3

1.3

versicolor

5.1

2.5

3.0

1.1

versicolor

5.7

2.8

4.1

1.3

versicolor

6.3

3.3

6.0

2.5

virginica

5.8

2.7

5.1

1.9

virginica

7.1

3.0

5.9

2.1

virginica

6.3

2.9

5.6

1.8

virginica

6.5

3.0

5.8

2.2

virginica

7.6

3.0

6.6

2.1

virginica

4.9

2.5

4.5

1.7

virginica

7.3

2.9

6.3

1.8

virginica

6.7

2.5

5.8

1.8

virginica

7.2

3.6

6.1

2.5

virginica

6.5

3.2

5.1

2.0

virginica

6.4

2.7

5.3

1.9

virginica

6.8

3.0

5.5

2.1

virginica

5.7

2.5

5.0

2.0

virginica

5.8

2.8

5.1

2.4

virginica

6.4

3.2

5.3

2.3

virginica

6.5

3.0

5.5

1.8

virginica

7.7

3.8

6.7

2.2

virginica

7.7

2.6

6.9

2.3

virginica

6.0

2.2

5.0

1.5

virginica

6.9

3.2

5.7

2.3

virginica

5.6

2.8

4.9

2.0

virginica

7.7

2.8

6.7

2.0

virginica

6.3

2.7

4.9

1.8

virginica

6.7

3.3

5.7

2.1

virginica

7.2

3.2

6.0

1.8

virginica

6.2

2.8

4.8

1.8

virginica

6.1

3.0

4.9

1.8

virginica

6.4

2.8

5.6

2.1

virginica

7.2

3.0

5.8

1.6

virginica

7.4

2.8

6.1

1.9

virginica

7.9

3.8

6.4

2.0

virginica

6.4

2.8

5.6

2.2

virginica

6.3

2.8

5.1

1.5

virginica

6.1

2.6

5.6

1.4

virginica

7.7

3.0

6.1

2.3

virginica

6.3

3.4

5.6

2.4

virginica

6.4

3.1

5.5

1.8

virginica

6.0

3.0

4.8

1.8

virginica

6.9

3.1

5.4

2.1

virginica

6.7

3.1

5.6

2.4

virginica

6.9

3.1

5.1

2.3

virginica

5.8

2.7

5.1

1.9

virginica

6.8

3.2

5.9

2.3

virginica

6.7

3.3

5.7

2.5

virginica

6.7

3.0

5.2

2.3

virginica

6.3

2.5

5.0

1.9

virginica

6.5

3.0

5.2

2.0

virginica

6.2

3.4

5.4

2.3

virginica

5.9

3.0

5.1

1.8

virginica

+

Sepal.Length

Sepal.Width

Petal.Length

Petal.Width

Species

5.1

3.5

1.4

0.2

setosa

4.9

3.0

1.4

0.2

setosa

4.7

3.2

1.3

0.2

setosa

4.6

3.1

1.5

0.2

setosa

5.0

3.6

1.4

0.2

setosa

5.4

3.9

1.7

0.4

setosa

4.6

3.4

1.4

0.3

setosa

5.0

3.4

1.5

0.2

setosa

4.4

2.9

1.4

0.2

setosa

4.9

3.1

1.5

0.1

setosa

5.4

3.7

1.5

0.2

setosa

4.8

3.4

1.6

0.2

setosa

4.8

3.0

1.4

0.1

setosa

4.3

3.0

1.1

0.1

setosa

5.8

4.0

1.2

0.2

setosa

5.7

4.4

1.5

0.4

setosa

5.4

3.9

1.3

0.4

setosa

5.1

3.5

1.4

0.3

setosa

5.7

3.8

1.7

0.3

setosa

5.1

3.8

1.5

0.3

setosa

5.4

3.4

1.7

0.2

setosa

5.1

3.7

1.5

0.4

setosa

4.6

3.6

1.0

0.2

setosa

5.1

3.3

1.7

0.5

setosa

4.8

3.4

1.9

0.2

setosa

5.0

3.0

1.6

0.2

setosa

5.0

3.4

1.6

0.4

setosa

5.2

3.5

1.5

0.2

setosa

5.2

3.4

1.4

0.2

setosa

4.7

3.2

1.6

0.2

setosa

4.8

3.1

1.6

0.2

setosa

5.4

3.4

1.5

0.4

setosa

5.2

4.1

1.5

0.1

setosa

5.5

4.2

1.4

0.2

setosa

4.9

3.1

1.5

0.2

setosa

5.0

3.2

1.2

0.2

setosa

5.5

3.5

1.3

0.2

setosa

4.9

3.6

1.4

0.1

setosa

4.4

3.0

1.3

0.2

setosa

5.1

3.4

1.5

0.2

setosa

5.0

3.5

1.3

0.3

setosa

4.5

2.3

1.3

0.3

setosa

4.4

3.2

1.3

0.2

setosa

5.0

3.5

1.6

0.6

setosa

5.1

3.8

1.9

0.4

setosa

4.8

3.0

1.4

0.3

setosa

5.1

3.8

1.6

0.2

setosa

4.6

3.2

1.4

0.2

setosa

5.3

3.7

1.5

0.2

setosa

5.0

3.3

1.4

0.2

setosa

7.0

3.2

4.7

1.4

versicolor

6.4

3.2

4.5

1.5

versicolor

6.9

3.1

4.9

1.5

versicolor

5.5

2.3

4.0

1.3

versicolor

6.5

2.8

4.6

1.5

versicolor

5.7

2.8

4.5

1.3

versicolor

6.3

3.3

4.7

1.6

versicolor

4.9

2.4

3.3

1.0

versicolor

6.6

2.9

4.6

1.3

versicolor

5.2

2.7

3.9

1.4

versicolor

5.0

2.0

3.5

1.0

versicolor

5.9

3.0

4.2

1.5

versicolor

6.0

2.2

4.0

1.0

versicolor

6.1

2.9

4.7

1.4

versicolor

5.6

2.9

3.6

1.3

versicolor

6.7

3.1

4.4

1.4

versicolor

5.6

3.0

4.5

1.5

versicolor

5.8

2.7

4.1

1.0

versicolor

6.2

2.2

4.5

1.5

versicolor

5.6

2.5

3.9

1.1

versicolor

5.9

3.2

4.8

1.8

versicolor

6.1

2.8

4.0

1.3

versicolor

6.3

2.5

4.9

1.5

versicolor

6.1

2.8

4.7

1.2

versicolor

6.4

2.9

4.3

1.3

versicolor

6.6

3.0

4.4

1.4

versicolor

6.8

2.8

4.8

1.4

versicolor

6.7

3.0

5.0

1.7

versicolor

6.0

2.9

4.5

1.5

versicolor

5.7

2.6

3.5

1.0

versicolor

5.5

2.4

3.8

1.1

versicolor

5.5

2.4

3.7

1.0

versicolor

5.8

2.7

3.9

1.2

versicolor

6.0

2.7

5.1

1.6

versicolor

5.4

3.0

4.5

1.5

versicolor

6.0

3.4

4.5

1.6

versicolor

6.7

3.1

4.7

1.5

versicolor

6.3

2.3

4.4

1.3

versicolor

5.6

3.0

4.1

1.3

versicolor

5.5

2.5

4.0

1.3

versicolor

5.5

2.6

4.4

1.2

versicolor

6.1

3.0

4.6

1.4

versicolor

5.8

2.6

4.0

1.2

versicolor

5.0

2.3

3.3

1.0

versicolor

5.6

2.7

4.2

1.3

versicolor

5.7

3.0

4.2

1.2

versicolor

5.7

2.9

4.2

1.3

versicolor

6.2

2.9

4.3

1.3

versicolor

5.1

2.5

3.0

1.1

versicolor

5.7

2.8

4.1

1.3

versicolor

6.3

3.3

6.0

2.5

virginica

5.8

2.7

5.1

1.9

virginica

7.1

3.0

5.9

2.1

virginica

6.3

2.9

5.6

1.8

virginica

6.5

3.0

5.8

2.2

virginica

7.6

3.0

6.6

2.1

virginica

4.9

2.5

4.5

1.7

virginica

7.3

2.9

6.3

1.8

virginica

6.7

2.5

5.8

1.8

virginica

7.2

3.6

6.1

2.5

virginica

6.5

3.2

5.1

2.0

virginica

6.4

2.7

5.3

1.9

virginica

6.8

3.0

5.5

2.1

virginica

5.7

2.5

5.0

2.0

virginica

5.8

2.8

5.1

2.4

virginica

6.4

3.2

5.3

2.3

virginica

6.5

3.0

5.5

1.8

virginica

7.7

3.8

6.7

2.2

virginica

7.7

2.6

6.9

2.3

virginica

6.0

2.2

5.0

1.5

virginica

6.9

3.2

5.7

2.3

virginica

5.6

2.8

4.9

2.0

virginica

7.7

2.8

6.7

2.0

virginica

6.3

2.7

4.9

1.8

virginica

6.7

3.3

5.7

2.1

virginica

7.2

3.2

6.0

1.8

virginica

6.2

2.8

4.8

1.8

virginica

6.1

3.0

4.9

1.8

virginica

6.4

2.8

5.6

2.1

virginica

7.2

3.0

5.8

1.6

virginica

7.4

2.8

6.1

1.9

virginica

7.9

3.8

6.4

2.0

virginica

6.4

2.8

5.6

2.2

virginica

6.3

2.8

5.1

1.5

virginica

6.1

2.6

5.6

1.4

virginica

7.7

3.0

6.1

2.3

virginica

6.3

3.4

5.6

2.4

virginica

6.4

3.1

5.5

1.8

virginica

6.0

3.0

4.8

1.8

virginica

6.9

3.1

5.4

2.1

virginica

6.7

3.1

5.6

2.4

virginica

6.9

3.1

5.1

2.3

virginica

5.8

2.7

5.1

1.9

virginica

6.8

3.2

5.9

2.3

virginica

6.7

3.3

5.7

2.5

virginica

6.7

3.0

5.2

2.3

virginica

6.3

2.5

5.0

1.9

virginica

6.5

3.0

5.2

2.0

virginica

6.2

3.4

5.4

2.3

virginica

5.9

3.0

5.1

1.8

virginica