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
21
votes
3 answers

flextable autofit in a Rmarkdown to word doc causes table to go outside page margins

Hi I am trying to use flextable in an Rmarkdown .doc document to format my tables. I like the simple formatting options that flextable gives (but open to other similar packages) but have found something that I thought should be a basic function…
Sarah
  • 3,022
  • 1
  • 19
  • 40
15
votes
3 answers

Using flextable in r markdown loop not producing tables

I have many tables to create and am trying to create them in a loop. I'm using flextable with rmarkdown inside rstudio. Using print(theFlextable) command in a loop produces a list of text rather than the table. This happens for docx and html…
user2547973
  • 343
  • 2
  • 9
13
votes
4 answers

flextable in Rmarkdown docx not printing within if statement if other text

I'm trying to use the package flextable to get some nicely formatted tables in my Rmarkdown (going to word file). The tables work just fine in general but if I put it within an if statement, if there is anything else being printed from the if…
Sarah
  • 3,022
  • 1
  • 19
  • 40
11
votes
1 answer

add caption to flextable in docx

How could one add a caption to a flextable rendered to docx? EDIT: The aim is to produce a proper caption which can be referenced within the document to produce a list of tables and inline references. iris.t <- iris[1:5,] %>% regulartable() %>%…
JAllen
  • 638
  • 6
  • 18
9
votes
1 answer

How to setup flextable with uiBinder for GWT 2.4

I'm trying to setup a flextable with uiBinder. I'm using GWT 2.4 and I know how to do a flextable, but not with uiBinder. I found this question: How can I add rows to a Google Web Toolkit flextable in the UiBinder? was asked on SO, but no examples…
James Drinkard
  • 15,342
  • 16
  • 114
  • 137
8
votes
0 answers

How can I overlay values on flextable minibars?

The closest I can get with flextable is this: What I'd like to achieve is something like this - knocked up with ggplot2: Any ideas? or is this a feature request? Code used to generate flextable: library(tibble) library(flextable) tib <-…
Peter
  • 11,500
  • 5
  • 21
  • 31
8
votes
1 answer

Table Cross-References in Bookdown with MS-Word Output?

How can I make table cross-references work in a bookdown document with all of the output formats pdf, docx, and html? Or maybe more specifically, how can I get table cross-references working for flextables? Below is a minimal working example. The…
lowndrul
  • 3,715
  • 7
  • 36
  • 54
8
votes
3 answers

Remove a flextable columns after the flextable creation

I create a flextable based on a csv file, I put some style on it, change some cells. Then I would like to remove a specific columns of this flextable before add it to a doc. Is-there a way to create a copy of a flextable and specifying…
Po78
  • 143
  • 1
  • 7
8
votes
2 answers

Table and Figure cross-reference officer R

I would like to be able to cross-reference a table or figure in a word document using the officer R package. I have come across these materials so far but they do not seem to have a…
Jordan Hackett
  • 689
  • 3
  • 11
8
votes
2 answers

alignment of a flextable on the page when rendering R Markdown to MS Word

I've been having great luck with customizing flextable tables in my R Markdown documents. However, I am struggling to change the location of a table on the page. It seems the tables are centered on the page by default. I'd like one of my tables…
JD Long
  • 59,675
  • 58
  • 202
  • 294
8
votes
1 answer

Formatting multiple columns with flextable r package

Is it possible to format multiple columns with one line of script using flexitable? The example includes variables of two different types of double. I'd like to: round variables greater than 1000 to the nearest 1000 and add thousand comma…
Peter
  • 11,500
  • 5
  • 21
  • 31
7
votes
2 answers

Adding headers IN table in flextable

I am trying to use flextable to make a nice table that knits into word, with descriptive banners/headers through out Example data: trialdata<-structure(list(` ` = c("Number per team", "Average height", "vegetarian", "meat", "carrot", "cucumber",…
Gabriella
  • 421
  • 3
  • 11
7
votes
2 answers

Dynamically set colnames from character string in flextable

The flextable help details describes adding new headers as manually typing each existing header name against each new header name, like this: library(flextable) ft_1 <- regulartable(head(iris)) ft_1 <- set_header_labels(ft_1, Sepal.Length = "SL", …
J.Con
  • 4,101
  • 4
  • 36
  • 64
7
votes
1 answer

Applying a Word style (table or paragraph) to flextable object

I'm trying to apply a Word style (table or paragraph) to a flextable object. My motivation is to find a way to stop a flextable from splitting across rows at a page break when outputted to a Word .docx document via knitr. For example, in the…
Owen
  • 109
  • 4
7
votes
2 answers

How can I add rows to a Google Web Toolkit flextable in the UiBinder?

Where can I find a UiBinder template for the FlexTable? I am using Google Web Toolkit (GWT).
dev
  • 71
  • 1
  • 1
  • 2
1
2 3
37 38