Questions tagged [flextable]

A flexible table that creates cells on demand. It can be jagged (that is, each row can contain a different number of cells) and individual cells can be set to span multiple rows or columns.

Java Class FlexTable

java.lang.Object
  com.google.gwt.user.client.ui.UIObject
    com.google.gwt.user.client.ui.Widget
      com.google.gwt.user.client.ui.Panel
        com.google.gwt.user.client.ui.HTMLTable
          com.google.gwt.user.client.ui.FlexTable

http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FlexTable.html

569 questions
6
votes
1 answer

Set font family and size of equations in flextable

I'm looking for an option to set the the font family and size of equations in a flextable. In general the font family and size of the table, rows and columns could be set via the sugar functions flextable::font and flextable::fontsize. However, both…
stefan
  • 90,330
  • 6
  • 25
  • 51
6
votes
1 answer

Flextable Basic Conditional Formatting

I have a flextable that I am trying to conditionally format percentage numbers based if they are > or less than a certain %. It's a simple conditional format so I'm not sure why it's not working. I feel as though I'm missing something obvious…
vb66
  • 353
  • 3
  • 14
6
votes
3 answers

How to add a table to a ggplot?

I am trying to combine (in a single chart) a regular ggplot chart with a table obtained with flextable. Consider the following example: library(tidyverse) library(patchwork) mydf <- tibble(a = c(1,2,3,4,5,4), b = c(4,4,4,3,3,3)) p1…
ℕʘʘḆḽḘ
  • 18,566
  • 34
  • 128
  • 235
6
votes
3 answers

Same Column Names in flextable in R

I am trying to create a 'flexable' object from the R package "flextable". I need to put same column names in more than one columns. When I am putting them in the the "col_key" option in the function "flextable" I am getting the error of "duplicated…
Bomvole
  • 61
  • 1
  • 4
6
votes
2 answers

Is it possible to change flextable default font from arial

I love David Gohel's Officer and Flextable packages and they are really a flexible alternative to write word document reports with complex layouts which are not achievable in R markdown. I have created custom styles for paragraphs and tables using…
Rich Tyler
  • 61
  • 1
  • 2
5
votes
3 answers

GWT FlexTable performance and optimization

I'm working on GWT project where we are using FlexTable to display some data. I know that we should probably be using CellTable as it has better performance, but FlexTable is easier to style (style specific cells) and makes it easier to update…
dimchez
  • 2,004
  • 1
  • 15
  • 9
5
votes
3 answers

Using add_header_row from flextable to create columns of varying widths

I have data as follows: dat <- structure(list(rn = c("type_A", "type_B", "type_C" ), freq = list(c(0, 0, 0, 5, 7, 16, 28), c(2, 1, 0, 5, 0, 8), c(0, 0, 3, 5, 12, 53, 73)), colspan = list(c(`25` = 1, `100` = 2, `250` = 1, `500` = 1, `1000` = 1,…
Tom
  • 2,173
  • 1
  • 17
  • 44
5
votes
1 answer

Is there a way to export a flextable object to Excel?

I want to try export a flextable object to an excel spreadsheet, but I can't find any solutions. According to this documentation (https://davidgohel.github.io/flextable/reference/index.html), the package allows users to export formattable objects to…
atirvine88
  • 153
  • 5
5
votes
0 answers

How can I tell R's flextable to add linebreaks within words if necessary to fit my table in the available width?

I like the flextable package for R. I am using it to create tables for a Shiny app. Sometimes the tables occupy half the browser width, which might be quite a narrow space on some browsers. I would like to constrain flextable to not exceed its…
Matt Cowgill
  • 659
  • 4
  • 13
5
votes
0 answers

Fractions and Superscript in a table while knitting to docx (RMarkdown)

I have been using officedown for some time now to knit to docx. I encountered an issue where a table I had to create required superscripts in the table as shown below This led me to go over all the methods for creating a table. Rather than typing…
Patrick
  • 915
  • 2
  • 9
  • 26
5
votes
1 answer

Indentation in the first column of a flextable object

I am building flextable objects to show tables, and sometimes I would like to add one or several indentations in the first column, where I show some rows' names. Next I share some code to simulate some data and have a reproducible example. The true…
user14365856
5
votes
1 answer

Looping Flextables in R Markdown documents with Word output

I am looking to print multiple flextables in a single R Markdown document. This is not challenging when using html output, but I need Word output. With html output, the following R Markdown code (example taken from…
MLevine
  • 113
  • 6
5
votes
1 answer

Way to merge flextables and retain formatting

Say I have 2 flextables: ft1 <- regulartable(head(iris)) ft2 <- regulartable(tail(iris)) And they have distinct formatting: ft1 <- bg(ft1, bg="green") ft2 <- color(ft2, color = "blue") Is there a way to merge these two after they are already…
morgan121
  • 2,213
  • 1
  • 15
  • 33
5
votes
1 answer

How to insert greek letter delta (∆) into header of flextable object?

I am using RMarkdown to create a word document (I need the output to be in .docx format). I'd like to use flextable (or any other package) to format my headers properly. I'm trying to get the greek symbol delta (∆) to display properly... it seems…
Nova
  • 5,423
  • 2
  • 42
  • 62
5
votes
3 answers

Can't install flextable

I'm having an issue installing Flextable, and it seems to be because of the gdtools package. It looks like gdtools relies on a .dylib file? Any ideas? > install.packages("flextable") There is a binary version available but the source version is…
LucaS
  • 887
  • 1
  • 9
  • 22
1
2
3
37 38