diff --git a/404.html b/404.html index 92c80b24..eb31418a 100644 --- a/404.html +++ b/404.html @@ -14,10 +14,10 @@ - + - +
Samuel Jobert. Contributor. work on pagination
Keith Newman. Contributor. +
Gohel D, Skintzos P (2024). flextable: Functions for Tabular Reporting. -R package version 0.9.5, https://davidgohel.github.io/flextable/, https://ardata-fr.github.io/flextable-book/. +R package version 0.9.6, +https://davidgohel.github.io/flextable/, https://ardata-fr.github.io/flextable-book/.
@Manual{, title = {flextable: Functions for Tabular Reporting}, author = {David Gohel and Panagiotis Skintzos}, year = {2024}, - note = {R package version 0.9.5, https://davidgohel.github.io/flextable/}, + note = {R package version 0.9.6, +https://davidgohel.github.io/flextable/}, url = {https://ardata-fr.github.io/flextable-book/}, }
headers_flextable_at_bkm()
footers_flextable_at_bkm()
flextable_to_rmd()
knit_child()
for
if
save_as_image()
ph_with.flextable()
as_raster()
gen_grob()
align()
align
"left"
c("left", "center", "right", "justify")
path
part = c("body", "header", "footer", "all")
"body"
lollipop()
gg_chunk()
grid_chunk()
as_image()
CRAN release: 2024-03-06
tab_settings()
officer::fp_tabs()
proudly brought to you by
Species
Sepal.Length
Petal.Length
Sepal.Width
Petal.Width
setosa
5.1
1.4
3.5
0.2
4.9
3.0
4.7
1.3
3.2
4.6
1.5
3.1
5.0
3.6
5.4
1.7
3.9
0.4
Blah
1
3
2
11
6
4
12
9
13
8
14
5
15
10
mpg
cyl
disp
hp
drat
wt
qsec
vs
am
gear
carb
(1) My tailor is rich
(2) My baker is rich
21.0
160
110
3.90
2.620
16.46
0
2.875
17.02
22.8
108
93
3.85
2.320
18.61
21.4
258
3.08
3.215
19.44
18.7
360
175
3.15
3.440
18.1
225
105
2.76
3.460
20.22
Ozone
Solar.R
Wind
Temp
Month
Day
blah
bleeeh
41
190
7.4
67
36
118
8.0
72
149
12.6
74
18
313
11.5
62
14.3
56
28
14.9
66
5.8
3.8
1.2
Means
Measure
Time
min: 4.3
min: 2
min: 1
min: 0.1
max: 7.9
max: 4.4
max: 6.9
max: 2.5
blah 1
blah 2
blah blah
(1)
(2)
(2) My tailor is rich
ft <- flextable(head(mtcars)[, 3:6]) -ft <- align(ft, align = "right", part = "all") -ft <- theme_tron_legacy(ft) -ft -disphpdratwt1601103.902.6201601103.902.875108933.852.3202581103.083.2153601753.153.4402251052.763.460ftab <- flextable(mtcars) + # Table of 6 columns +ft_car <- flextable(head(mtcars)[, 2:7]) + +# All 6 columns right aligned +align(ft_car, align = "right", part = "all") +cyldisphpdratwtqsec61601103.902.62016.4661601103.902.87517.024108933.852.32018.6162581103.083.21519.4483601753.153.44017.0262251052.763.46020.22 +# Manually specify alignment of each column +align( + ft_car, + align = c("left", "right", "left", "center", "center", "right"), + part = "all") +cyldisphpdratwtqsec61601103.902.62016.4661601103.902.87517.024108933.852.32018.6162581103.083.21519.4483601753.153.44017.0262251052.763.46020.22 +# Center-align column 2 and left-align column 5 +align(ft_car, j = c(2, 5), align = c("center", "left"), part = "all") +cyldisphpdratwtqsec61601103.902.62016.4661601103.902.87517.024108933.852.32018.6162581103.083.21519.4483601753.153.44017.0262251052.763.46020.22 +# Alternate left and center alignment across columns 1-4 for header only +align(ft_car, j = 1:4, align = c("left", "center"), part = "header") +cyldisphpdratwtqsec61601103.902.62016.4661601103.902.87517.024108933.852.32018.6162581103.083.21519.4483601753.153.44017.0262251052.763.46020.22ftab <- flextable(mtcars) ftab <- align_text_col(ftab, align = "left") ftab <- align_nottext_col(ftab, align = "right") ftab -mpgcyldisphpdratwtqsecvsamgearcarb21.06160.01103.902.62016.46014421.06160.01103.902.87517.02014422.84108.0933.852.32018.61114121.46258.01103.083.21519.44103118.78360.01753.153.44017.02003218.16225.01052.763.46020.22103114.38360.02453.213.57015.84003424.44146.7623.693.19020.00104222.84140.8953.923.15022.90104219.26167.61233.923.44018.30104417.86167.61233.923.44018.90104416.48275.81803.074.07017.40003317.38275.81803.073.73017.60003315.28275.81803.073.78018.00003310.48472.02052.935.25017.98003410.48460.02153.005.42417.82003414.78440.02303.235.34517.42003432.4478.7664.082.20019.47114130.4475.7524.931.61518.52114233.9471.1654.221.83519.90114121.54120.1973.702.46520.01103115.58318.01502.763.52016.87003215.28304.01503.153.43517.30003213.38350.02453.733.84015.41003419.28400.01753.083.84517.05003227.3479.0664.081.93518.90114126.04120.3914.432.14016.70015230.4495.11133.771.51316.90115215.88351.02644.223.17014.50015419.76145.01753.622.77015.50015615.08301.03353.543.57014.60015821.44121.01094.112.78018.601142 +mpgcyldisphpdratwtqsecvsamgearcarb21.06160.01103.902.62016.46014421.06160.01103.902.87517.02014422.84108.0933.852.32018.61114121.46258.01103.083.21519.44103118.78360.01753.153.44017.02003218.16225.01052.763.46020.22103114.38360.02453.213.57015.84003424.44146.7623.693.19020.00104222.84140.8953.923.15022.90104219.26167.61233.923.44018.30104417.86167.61233.923.44018.90104416.48275.81803.074.07017.40003317.38275.81803.073.73017.60003315.28275.81803.073.78018.00003310.48472.02052.935.25017.98003410.48460.02153.005.42417.82003414.78440.02303.235.34517.42003432.4478.7664.082.20019.47114130.4475.7524.931.61518.52114233.9471.1654.221.83519.90114121.54120.1973.702.46520.01103115.58318.01502.763.52016.87003215.28304.01503.153.43517.30003213.38350.02453.733.84015.41003419.28400.01753.083.84517.05003227.3479.0664.081.93518.90114126.04120.3914.432.14016.70015230.4495.11133.771.51316.90115215.88351.02644.223.17014.50015419.76145.01753.622.77015.50015615.08301.03353.543.57014.60015821.44121.01094.112.78018.601142
# Table of 6 columns +ft_car <- flextable(head(mtcars)[, 2:7]) + +# All 6 columns right aligned +align(ft_car, align = "right", part = "all") +cyldisphpdratwtqsec61601103.902.62016.4661601103.902.87517.024108933.852.32018.6162581103.083.21519.4483601753.153.44017.0262251052.763.46020.22 +# Manually specify alignment of each column +align( + ft_car, + align = c("left", "right", "left", "center", "center", "right"), + part = "all") +cyldisphpdratwtqsec61601103.902.62016.4661601103.902.87517.024108933.852.32018.6162581103.083.21519.4483601753.153.44017.0262251052.763.46020.22 +# Center-align column 2 and left-align column 5 +align(ft_car, j = c(2, 5), align = c("center", "left"), part = "all") +cyldisphpdratwtqsec61601103.902.62016.4661601103.902.87517.024108933.852.32018.6162581103.083.21519.4483601753.153.44017.0262251052.763.46020.22 +# Alternate left and center alignment across columns 1-4 for header only +align(ft_car, j = 1:4, align = c("left", "center"), part = "header") +cyldisphpdratwtqsec61601103.902.62016.4661601103.902.87517.024108933.852.32018.6162581103.083.21519.4483601753.153.44017.0262251052.763.46020.22ftab <- flextable(mtcars) ftab <- align_text_col(ftab, align = "left") ftab <- align_nottext_col(ftab, align = "right") ftab -mpgcyldisphpdratwtqsecvsamgearcarb21.06160.01103.902.62016.46014421.06160.01103.902.87517.02014422.84108.0933.852.32018.61114121.46258.01103.083.21519.44103118.78360.01753.153.44017.02003218.16225.01052.763.46020.22103114.38360.02453.213.57015.84003424.44146.7623.693.19020.00104222.84140.8953.923.15022.90104219.26167.61233.923.44018.30104417.86167.61233.923.44018.90104416.48275.81803.074.07017.40003317.38275.81803.073.73017.60003315.28275.81803.073.78018.00003310.48472.02052.935.25017.98003410.48460.02153.005.42417.82003414.78440.02303.235.34517.42003432.4478.7664.082.20019.47114130.4475.7524.931.61518.52114233.9471.1654.221.83519.90114121.54120.1973.702.46520.01103115.58318.01502.763.52016.87003215.28304.01503.153.43517.30003213.38350.02453.733.84015.41003419.28400.01753.083.84517.05003227.3479.0664.081.93518.90114126.04120.3914.432.14016.70015230.4495.11133.771.51316.90115215.88351.02644.223.17014.50015419.76145.01753.622.77015.50015615.08301.03353.543.57014.60015821.44121.01094.112.78018.601142
160.0
108.0
258.0
360.0
225.0
245
3.21
3.570
15.84
24.4
146.7
3.69
3.190
20.00
140.8
95
3.92
3.150
22.90
19.2
167.6
123
18.30
17.8
18.90
16.4
275.8
180
3.07
4.070
17.40
17.3
3.730
17.60
15.2
3.780
18.00
10.4
472.0
205
2.93
5.250
17.98
460.0
215
3.00
5.424
17.82
14.7
440.0
230
3.23
5.345
17.42
32.4
78.7
4.08
2.200
19.47
30.4
75.7
52
4.93
1.615
18.52
33.9
71.1
65
4.22
1.835
19.90
21.5
120.1
97
3.70
2.465
20.01
15.5
318.0
150
3.520
16.87
304.0
3.435
17.30
13.3
350.0
3.73
3.840
15.41
400.0
3.845
17.05
27.3
79.0
1.935
26.0
120.3
91
4.43
2.140
16.70
95.1
113
3.77
1.513
16.90
15.8
351.0
264
3.170
14.50
19.7
145.0
3.62
2.770
15.50
15.0
301.0
335
3.54
14.60
121.0
109
4.11
2.780
18.60
Sepal
Petal
(5.1, 3.5)
(1.4, 0.2)
(4.9, 3)
(4.7, 3.2)
(1.3, 0.2)
(4.6, 3.1)
(1.5, 0.2)
(5, 3.6)
(5.4, 3.9)
(1.7, 0.4)
Sepal.Length value is 5.1
Sepal.Length value is 4.9
Sepal.Length value is 4.7
Sepal.Length value is 4.6
Sepal.Length value is 5.0
Sepal.Length value is 5.4
formula
(ax2+bx+c=0)(ax^2 + bx + c = 0)(ax2+bx+c=0)
a≠0a \ne 0a=0
x=−b±b2−4ac2ax = {-b \pm \sqrt{b^2-4ac} \over 2a}x=2a−b±b2−4acformula(ax2+bx+c=0)(ax^2 + bx + c = 0)(ax2+bx+c=0)a≠0a \ne 0a=0x=−b±b2−4ac2ax = {-b \pm \sqrt{b^2-4ac} \over 2a}x=2a−b±b2−4acExamples - proudly brought to you by + proudly brought to you by diff --git a/reference/as_flextable.data.frame.html b/reference/as_flextable.data.frame.html index 31ec0dd2..ff2aaead 100644 --- a/reference/as_flextable.data.frame.html +++ b/reference/as_flextable.data.frame.html @@ -1,8 +1,6 @@ Transform and summarise a 'data.frame' into a flextable -Simple summary of a data.frame as a flextable — as_flextable.data.frame • flextableTransform and summarise a 'data.frame' into a flextable Simple summary of a data.frame as a flextable — as_flextable.data.frame • flextableTransform a 'gam' model into a flextable — as_flextable.gam • flextableTransform a 'gam' model into a flextable — as_flextable.gam • flextableTransform a 'glm' object into a flextable — as_flextable.glm • flextableTransform a 'glm' object into a flextable — as_flextable.glm • flextableTransform a 'grouped_data' object into a flextable — as_flextable.grouped_data • flextableTransform a 'grouped_data' object into a flextable — as_flextable.grouped_data • flextableTransform a 'htest' object into a flextable — as_flextable.htest • flextableTransform a 'htest' object into a flextable — as_flextable.htest • flextableMethod to transform objects into flextables — as_flextable • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -100,11 +100,11 @@ See also diff --git a/reference/as_flextable.kmeans.html b/reference/as_flextable.kmeans.html index e233c34e..9711e228 100644 --- a/reference/as_flextable.kmeans.html +++ b/reference/as_flextable.kmeans.html @@ -1,7 +1,7 @@ Transform a 'kmeans' object into a flextable — as_flextable.kmeans • flextableTransform a 'kmeans' object into a flextable — as_flextable.kmeans • flextableTransform a 'lm' object into a flextable — as_flextable.lm • flextableTransform a 'lm' object into a flextable — as_flextable.lm • flextableTransform a mixed model into a flextable — as_flextable.merMod • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -127,18 +127,18 @@ Examples ft } #> Loading required package: broom.mixed -groupEstimateStandard Errordfstatisticp-valueFixed effects(Intercept)16.7610.7758021.6200.0000***age0.6600.071809.2650.0000***Random effectsSubjectsd_(Intercept)2.327Subjectcor_age.(Intercept)-0.609Subjectsd_age0.226Residualsd_Observation1.310Signif. codes: 0 <= '***' < 0.001 < '**' < 0.01 < '*' < 0.05square root of the estimated residual variance: 1.3data's log-likelihood under the model: -221.3Akaike Information Criterion: 454.6Bayesian Information Criterion: 470.6 +groupEstimateStandard Errordfstatisticp-valueFixed effects(Intercept)16.7610.7758021.6200.0000***age0.6600.071809.2650.0000***Random effectsSubjectsd_(Intercept)2.327Subjectcor_age.(Intercept)-0.609Subjectsd_age0.226Residualsd_Observation1.310Signif. codes: 0 <= '***' < 0.001 < '**' < 0.01 < '*' < 0.05square root of the estimated residual variance: 1.3data's log-likelihood under the model: -221.3Akaike Information Criterion: 454.6Bayesian Information Criterion: 470.6 diff --git a/reference/as_flextable.pam.html b/reference/as_flextable.pam.html index 75f2b3e2..3640f7bc 100644 --- a/reference/as_flextable.pam.html +++ b/reference/as_flextable.pam.html @@ -1,7 +1,7 @@ Transform a 'pam' object into a flextable — as_flextable.pam • flextableTransform a 'pam' object into a flextable — as_flextable.pam • flextableTransform a 'summarizor' object into a flextable — as_flextable.summarizor • flextableTransform a 'summarizor' object into a flextable — as_flextable.summarizor • flextableTransform a 'table' object into a flextable — as_flextable.table • flextableTransform a 'table' object into a flextable — as_flextable.table • flextableTransform a 'tables::tabular' object into a flextable — as_flextable.tabular • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -190,7 +190,7 @@ Examples as_flextable(tab) } #> Loading required package: tables -SexStatisticStatushighlowmediumFemalemean4.574.735.09sd(1.04)(0.92)(0.66)Malemean4.584.405.64sd(0.83)(0.82)(1.11) +SexStatisticStatushighlowmediumFemalemean4.574.735.09sd(1.04)(0.92)(0.66)Malemean4.584.405.64sd(0.83)(0.82)(1.11) if (require("tables")) { tab <- tabular( (Species + 1) ~ (n = 1) + Format(digits = 2) * @@ -199,7 +199,7 @@ Examples ) as_flextable(tab) } -SpeciesSepal.LengthSepal.Widthnmeansdmeansdsetosa505.010.353.430.38versicolor505.940.522.770.31virginica506.590.642.970.32All1505.840.833.060.44 +SpeciesSepal.LengthSepal.Widthnmeansdmeansdsetosa505.010.353.430.38versicolor505.940.522.770.31virginica506.590.642.970.32All1505.840.833.060.44 if (require("tables")) { x <- tabular((Factor(gear, "Gears") + 1) * ((n = 1) + Percent() @@ -218,7 +218,7 @@ Examples ) ft } -Carburetors123468AllGears: 3n34350015Percent9129160047RowPct2027203300100ColPct4340100500047Gears: 4n44040012Percent12120120038RowPct333303300100ColPct57400400038Gears: 5n0201115Percent06033316RowPct0400202020100ColPct02001010010016Gears: Alln7103101132Percent223193133100RowPct223193133100ColPct100100100100100100100 +Carburetors123468AllGears: 3n34350015Percent9129160047RowPct2027203300100ColPct4340100500047Gears: 4n44040012Percent12120120038RowPct333303300100ColPct57400400038Gears: 5n0201115Percent06033316RowPct0400202020100ColPct02001010010016Gears: Alln7103101132Percent223193133100RowPct223193133100ColPct100100100100100100100 if (require("tables")) { tab <- tabular( (mean + mean) * (Sepal.Length + Sepal.Width) ~ 1, @@ -226,18 +226,18 @@ Examples ) as_flextable(tab) } -AllmeanSepal.Length5.843Sepal.Width3.057meanSepal.Length5.843Sepal.Width3.057 +AllmeanSepal.Length5.843Sepal.Width3.057meanSepal.Length5.843Sepal.Width3.057 diff --git a/reference/as_flextable.tabulator.html b/reference/as_flextable.tabulator.html index 26be00d9..ab953ff2 100644 --- a/reference/as_flextable.tabulator.html +++ b/reference/as_flextable.tabulator.html @@ -1,6 +1,6 @@ Transform a 'tabulator' object into a flextable — as_flextable.tabulator • flextableTransform a 'tabulator' object into a flextable — as_flextable.tabulator • flextableTransform a 'xtable' object into a flextable — as_flextable.xtable • flextableTransform a 'xtable' object into a flextable — as_flextable.xtable • flextableAdd row separators to grouped data — as_grouped_data • flextableAdd row separators to grouped data — as_grouped_data • flextableHighlight chunk — as_highlight • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -110,18 +110,18 @@ Examples) ft -Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 +Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 diff --git a/reference/as_i.html b/reference/as_i.html index 8d4485e1..fd337c34 100644 --- a/reference/as_i.html +++ b/reference/as_i.html @@ -3,7 +3,7 @@ italic font. It is used to add it to the content of a cell of the flextable with the functions compose(), append_chunks() -or prepend_chunks().">Italic chunk — as_i • flextableItalic chunk — as_i • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -106,18 +106,18 @@ Examples) ft -Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 +Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 diff --git a/reference/as_image.html b/reference/as_image.html index ab4d03b0..7008090f 100644 --- a/reference/as_image.html +++ b/reference/as_image.html @@ -7,7 +7,7 @@ -">Image chunk wrapper — as_image • flextableImage chunk wrapper — as_image • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -159,18 +159,18 @@ Examples#> Linking to ImageMagick 6.9.10.23 #> Enabled features: fontconfig, freetype, fftw, lcms, pango, webp, x11 #> Disabled features: cairo, ghostscript, heic, raw, rsvg -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies 5.13.51.40.2setosa 4.93.01.40.2setosa 4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies 5.13.51.40.2setosa 4.93.01.40.2setosa 4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa diff --git a/reference/as_paragraph.html b/reference/as_paragraph.html index ff325afb..0bacdb7f 100644 --- a/reference/as_paragraph.html +++ b/reference/as_paragraph.html @@ -5,7 +5,7 @@ This allows the concatenation of formatted pieces of text (chunks) that represent the content of a paragraph. The cells of a flextable contain each a single paragraph. This paragraph -is made of chunks that can be text, images or plots, equations and links.">Concatenate chunks in a flextable — as_paragraph • flextableConcatenate chunks in a flextable — as_paragraph • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -109,18 +109,18 @@ Examples) ft <- autofit(ft) ft -OzoneSolar.RWindTempMonthDay39836.9 81816411.5 7981525910.9 93611664.6 87861506.3 77621591.7 7662226614.9 58526357.4 85851682383.4 818254423614.9 81911 +OzoneSolar.RWindTempMonthDay39836.9 81816411.5 7981525910.9 93611664.6 87861506.3 77621591.7 7662226614.9 58526357.4 85851682383.4 818254423614.9 81911 diff --git a/reference/as_raster.html b/reference/as_raster.html index d3538038..c4aae5b9 100644 --- a/reference/as_raster.html +++ b/reference/as_raster.html @@ -3,7 +3,7 @@ raster. This function has been implemented to let flextable be printed on a ggplot object. The function is no longer very useful since gen_grob() exists and -will be deprecated in a future version.">Transform a flextable into a raster — as_raster • flextableTransform a flextable into a raster — as_raster • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -114,11 +114,11 @@ Examples - proudly brought to you by + proudly brought to you by diff --git a/reference/as_sub.html b/reference/as_sub.html index 436012ec..102668cd 100644 --- a/reference/as_sub.html +++ b/reference/as_sub.html @@ -3,7 +3,7 @@ subscript vertical alignment. It is used to add it to the content of a cell of the flextable with the functions compose(), append_chunks() -or prepend_chunks().">Subscript chunk — as_sub • flextableSubscript chunk — as_sub • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -108,18 +108,18 @@ Examples ft <- autofit(ft) ft -Sepal.Length anything +Sepal.Length anything diff --git a/reference/as_sup.html b/reference/as_sup.html index 27efb71d..cf7d39e6 100644 --- a/reference/as_sup.html +++ b/reference/as_sup.html @@ -3,7 +3,7 @@ superscript vertical alignment. It is used to add it to the content of a cell of the flextable with the functions compose(), append_chunks() -or prepend_chunks().">Superscript chunk — as_sup • flextableSuperscript chunk — as_sup • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -114,18 +114,18 @@ Examples ft <- autofit(ft) ft - anything Sepal.Width + anything Sepal.Width diff --git a/reference/as_word_field.html b/reference/as_word_field.html index 50304c3c..5ba1e75c 100644 --- a/reference/as_word_field.html +++ b/reference/as_word_field.html @@ -11,7 +11,7 @@ Do not forget to update the computed field in Word. Fields are defined but are not computed, this computing is an operation that has to be made by 'Microsoft Word' -(select all text and hit F9 when on mac os).">'Word' computed field — as_word_field • flextable'Word' computed field — as_word_field • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -188,11 +188,11 @@ Examples - proudly brought to you by + proudly brought to you by diff --git a/reference/autofit.html b/reference/autofit.html index 262b6d63..2c6d1c5f 100644 --- a/reference/autofit.html +++ b/reference/autofit.html @@ -13,7 +13,7 @@ There is an alternative to fixed-width layouts that works well with HTML and Word output that can be set with set_table_properties(layout = "autofit"), see -set_table_properties().">Adjusts cell widths and heights — autofit • flextableAdjusts cell widths and heights — autofit • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -153,20 +153,20 @@ See alsoExamples ft_1 <- flextable(head(mtcars)) ft_1 -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031ft_2 <- autofit(ft_1) +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031ft_2 <- autofit(ft_1) ft_2 -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 diff --git a/reference/before.html b/reference/before.html index 68df43b0..ba6fbfc7 100644 --- a/reference/before.html +++ b/reference/before.html @@ -1,6 +1,6 @@ Is an element before a match with entries — before • flextableIs an element before a match with entries — before • flextableSet background color — bg • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -138,7 +138,7 @@ Examplesft_1 <- bg(ft_1, j = "drat", bg = "#606060", part = "all") ft_1 <- color(ft_1, j = "drat", color = "white", part = "all") ft_1 -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 if (require("scales")) { ft_2 <- flextable(head(iris)) colourer <- col_numeric( @@ -155,18 +155,18 @@ Examples ft_2 } #> Loading required package: scales -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa diff --git a/reference/body_add_flextable.html b/reference/body_add_flextable.html index 86764f4a..f7dc3b27 100644 --- a/reference/body_add_flextable.html +++ b/reference/body_add_flextable.html @@ -1,6 +1,6 @@ Add flextable into a Word document — body_add_flextable • flextableAdd flextable into a Word document — body_add_flextable • flextableAdd flextable at boorkmark location in a Word document — body_replace_flextable_at_bkm • flextableAdd flextable at boorkmark location in a Word document — body_replace_flextable_at_bkm • flextableSet bold font — bold • flextableSet bold font — bold • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -106,11 +106,11 @@ Examples - proudly brought to you by + proudly brought to you by diff --git a/reference/border.html b/reference/border.html index 7b16b6d3..33782cf0 100644 --- a/reference/border.html +++ b/reference/border.html @@ -20,7 +20,7 @@ If you want to highlight specific cells with some borders, use -surround().">Cell borders update — border • flextableCell borders update — border • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -170,18 +170,18 @@ Examplesftab <- flextable(head(mtcars)) ftab <- border(ftab, border.top = fp_border(color = "orange")) ftab -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 diff --git a/reference/border_inner.html b/reference/border_inner.html index c8338be5..3418a43b 100644 --- a/reference/border_inner.html +++ b/reference/border_inner.html @@ -1,6 +1,6 @@ Set vertical & horizontal inner borders — border_inner • flextableSet vertical & horizontal inner borders — border_inner • flextableSet inner borders — border_inner_h • flextableSet inner borders — border_inner_h • flextableSet vertical inner borders — border_inner_v • flextableSet vertical inner borders — border_inner_v • flextableSet outer borders — border_outer • flextableSet outer borders — border_outer • flextableRemove borders — border_remove • flextableRemove borders — border_remove • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -82,22 +82,22 @@ Examplesft_1 <- flextable(dat) ft_1 <- theme_box(ft_1) ft_1 -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa7.03.24.71.4versicolor6.43.24.51.5versicolor6.93.14.91.5versicolor5.52.34.01.3versicolor6.52.84.61.5versicolor6.33.36.02.5virginica5.82.75.11.9virginica7.13.05.92.1virginica6.32.95.61.8virginica6.53.05.82.2virginica +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa7.03.24.71.4versicolor6.43.24.51.5versicolor6.93.14.91.5versicolor5.52.34.01.3versicolor6.52.84.61.5versicolor6.33.36.02.5virginica5.82.75.11.9virginica7.13.05.92.1virginica6.32.95.61.8virginica6.53.05.82.2virginica # remove all borders ft_2 <- border_remove(x = ft_1) ft_2 -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa7.03.24.71.4versicolor6.43.24.51.5versicolor6.93.14.91.5versicolor5.52.34.01.3versicolor6.52.84.61.5versicolor6.33.36.02.5virginica5.82.75.11.9virginica7.13.05.92.1virginica6.32.95.61.8virginica6.53.05.82.2virginica +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa7.03.24.71.4versicolor6.43.24.51.5versicolor6.93.14.91.5versicolor5.52.34.01.3versicolor6.52.84.61.5versicolor6.33.36.02.5virginica5.82.75.11.9virginica7.13.05.92.1virginica6.32.95.61.8virginica6.53.05.82.2virginica diff --git a/reference/chunk_dataframe.html b/reference/chunk_dataframe.html index 50fcb7db..bf980b64 100644 --- a/reference/chunk_dataframe.html +++ b/reference/chunk_dataframe.html @@ -1,7 +1,7 @@ Create a chunk representation suitable for flextable — chunk_dataframe • flextableCreate a chunk representation suitable for flextable — chunk_dataframe • flextableFormat character cells — colformat_char • flextableFormat character cells — colformat_char • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -106,18 +106,18 @@ Examples) z <- autofit(z) z -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa diff --git a/reference/colformat_date.html b/reference/colformat_date.html index c4bda5e2..39695eda 100644 --- a/reference/colformat_date.html +++ b/reference/colformat_date.html @@ -1,16 +1,16 @@ -Format date cells — colformat_date • flextableFormat date cells — colformat_date • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -112,18 +112,18 @@ Examplesft <- colformat_date(x = ft) ft <- autofit(ft) ft -zw2024-03-062024-03-042024-03-072024-03-032024-03-082024-03-02 +zw2024-05-062024-05-042024-05-072024-05-032024-05-082024-05-02 diff --git a/reference/colformat_datetime.html b/reference/colformat_datetime.html index 070d68bf..59c9f1d7 100644 --- a/reference/colformat_datetime.html +++ b/reference/colformat_datetime.html @@ -1,16 +1,16 @@ -Format datetime cells — colformat_datetime • flextableFormat datetime cells — colformat_datetime • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -112,18 +112,18 @@ Examplesft <- colformat_datetime(x = ft) ft <- autofit(ft) ft -zw2024-03-05 22:46:182024-02-102024-03-05 22:46:422024-01-172024-03-05 22:47:062023-12-24 +zw2024-05-05 08:17:282024-04-112024-05-05 08:17:522024-03-182024-05-05 08:18:162024-02-23 diff --git a/reference/colformat_double.html b/reference/colformat_double.html index b452344a..b5171524 100644 --- a/reference/colformat_double.html +++ b/reference/colformat_double.html @@ -1,16 +1,16 @@ -Format numeric cells — colformat_double • flextableFormat numeric cells — colformat_double • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -113,18 +113,18 @@ Examples big.mark = ",", digits = 2, na_str = "N/A" ) autofit(ft) -mpgcyldisphpdratwtqsecvsamgearcarb21.006.00160.00110.003.902.6216.460.001.004.004.0021.006.00160.00110.003.902.8817.020.001.004.004.0022.804.00108.0093.003.852.3218.611.001.004.001.0021.406.00258.00110.003.083.2119.441.000.003.001.0018.708.00360.00175.003.153.4417.020.000.003.002.0018.106.00225.00105.002.763.4620.221.000.003.001.00 +mpgcyldisphpdratwtqsecvsamgearcarb21.006.00160.00110.003.902.6216.460.001.004.004.0021.006.00160.00110.003.902.8817.020.001.004.004.0022.804.00108.0093.003.852.3218.611.001.004.001.0021.406.00258.00110.003.083.2119.441.000.003.001.0018.708.00360.00175.003.153.4417.020.000.003.002.0018.106.00225.00105.002.763.4620.221.000.003.001.00 diff --git a/reference/colformat_image.html b/reference/colformat_image.html index 94c31fd0..d1a6e8fc 100644 --- a/reference/colformat_image.html +++ b/reference/colformat_image.html @@ -1,16 +1,16 @@ -Format cells as images — colformat_image • flextableFormat cells as images — colformat_image • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -119,18 +119,18 @@ Examples) ft <- autofit(myft) ft -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.24.93.01.40.2setosa4.73.21.30.24.63.11.50.2setosa5.03.61.40.25.43.91.70.4setosa +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.24.93.01.40.2setosa4.73.21.30.24.63.11.50.2setosa5.03.61.40.25.43.91.70.4setosa diff --git a/reference/colformat_int.html b/reference/colformat_int.html index ebb1ff00..4c45efe6 100644 --- a/reference/colformat_int.html +++ b/reference/colformat_int.html @@ -1,16 +1,16 @@ -Format integer cells — colformat_int • flextableFormat integer cells — colformat_int • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -108,18 +108,18 @@ Examplesj <- c("vs", "am", "gear", "carb") z <- colformat_int(x = z, j = j, prefix = "# ") z -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 diff --git a/reference/colformat_lgl.html b/reference/colformat_lgl.html index 2f1ce968..a847b559 100644 --- a/reference/colformat_lgl.html +++ b/reference/colformat_lgl.html @@ -1,16 +1,16 @@ -Format logical cells — colformat_lgl • flextableFormat logical cells — colformat_lgl • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -110,18 +110,18 @@ Examplesz <- flextable(dat) z <- colformat_lgl(x = z, j = c("a", "b")) autofit(z) -abtruefalsefalsetrue +abtruefalsefalsetrue diff --git a/reference/colformat_num.html b/reference/colformat_num.html index 2b0bd533..42f744ba 100644 --- a/reference/colformat_num.html +++ b/reference/colformat_num.html @@ -3,7 +3,7 @@ The function is different from colformat_double() on numeric type columns. The function uses the format() function of R on numeric type columns. So this is normally what you see on the R console -most of the time (but scientific mode is disabled and NA are replaced).">Format numeric cells — colformat_num • flextableFormat numeric cells — colformat_num • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -151,18 +151,18 @@ Examples) ft <- autofit(ft) ft -mpgcyldisphpdratwtqsecvsamgearcarb21,061601103,902,62016,460144N/A61601103,902,87517,02014422,84108933,852,32018,61114121,462581103,083,21519,44103118,783601753,153,44017,02003218,162251052,763,46020,221031 +mpgcyldisphpdratwtqsecvsamgearcarb21,061601103,902,62016,460144N/A61601103,902,87517,02014422,84108933,852,32018,61114121,462581103,083,21519,44103118,783601753,153,44017,02003218,162251052,763,46020,221031 diff --git a/reference/color.html b/reference/color.html index 1f35f45c..e85ead9a 100644 --- a/reference/color.html +++ b/reference/color.html @@ -7,7 +7,7 @@ argument colkeys) is a common use case. The argument source has to be used to define what are the columns to be used for the color definition and the argument j has to be used to define where to apply -the colors and only accept values from colkeys.">Set font color — color • flextableSet font color — color • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -135,7 +135,7 @@ Examples i = ~ qsec < 18 & vs < 1 ) ft -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 if (require("scales")) { scale <- scales::col_numeric(domain = c(-1, 1), palette = "RdBu") x <- as.data.frame(cor(iris[-5])) @@ -153,18 +153,18 @@ Examples ft_2 } #> Warning: Use `colformat_*()` instead. -colnameSepal.LengthSepal.WidthPetal.LengthPetal.WidthSepal.Length1.0-0.10.90.8Sepal.Width-0.11.0-0.4-0.4Petal.Length0.9-0.41.01.0Petal.Width0.8-0.41.01.0 +colnameSepal.LengthSepal.WidthPetal.LengthPetal.WidthSepal.Length1.0-0.10.90.8Sepal.Width-0.11.0-0.4-0.4Petal.Length0.9-0.41.01.0Petal.Width0.8-0.41.01.0 diff --git a/reference/colorize.html b/reference/colorize.html index 8a52e7f1..6c8b2f40 100644 --- a/reference/colorize.html +++ b/reference/colorize.html @@ -3,7 +3,7 @@ a font in color. It is used to add it to the content of a cell of the flextable with the functions compose(), append_chunks() -or prepend_chunks().">Colorize chunk — colorize • flextableColorize chunk — colorize • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -110,18 +110,18 @@ Examples) ft -Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 +Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 diff --git a/reference/compose.html b/reference/compose.html index 9f1da2bc..07140142 100644 --- a/reference/compose.html +++ b/reference/compose.html @@ -9,7 +9,7 @@ If you only need to add some content at the end or the beginning of paragraphs and keep existing content as it is, functions append_chunks() and -prepend_chunks() should be prefered.">Define displayed values and mixed content — compose • flextableDefine displayed values and mixed content — compose • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -136,7 +136,7 @@ Examples) ft_1 <- set_table_properties(ft_1, layout = "autofit") ft_1 -speeddist42410speed: 474722speed: 7816speed: 8 +speeddist42410speed: 474722speed: 7816speed: 8 # using `use_dot = TRUE` ---- set.seed(8) dat <- iris[sample.int(n = 150, size = 10), ] @@ -156,18 +156,18 @@ Examplesft_2 <- theme_vader(ft_2) ft_2 <- autofit(ft_2) ft_2 -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpeciessetosasetosaversicolorversicolorversicolorversicolorversicolorvirginicavirginicavirginica +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpeciessetosasetosaversicolorversicolorversicolorversicolorversicolorvirginicavirginicavirginica diff --git a/reference/continuous_summary.html b/reference/continuous_summary.html index 834afc44..5dbf1f16 100644 --- a/reference/continuous_summary.html +++ b/reference/continuous_summary.html @@ -1,16 +1,16 @@ -Continuous columns summary — continuous_summary • flextableContinuous columns summary — continuous_summary • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -92,18 +92,18 @@ Examples hide_grouplabel = FALSE ) ft_1 -SpeciesNmin.q1medianq3max.meansdmad# navariable: Sepal.Lengthsetosa504.3004.8005.0005.2005.8005.0060.3520.2970versicolor504.9005.6005.9006.3007.0005.9360.5160.5190virginica504.9006.2256.5006.9007.9006.5880.6360.5930variable: Sepal.Widthsetosa502.3003.2003.4003.6754.4003.4280.3790.3710versicolor502.0002.5252.8003.0003.4002.7700.3140.2970virginica502.2002.8003.0003.1753.8002.9740.3220.2970variable: Petal.Lengthsetosa501.0001.4001.5001.5751.9001.4620.1740.1480versicolor503.0004.0004.3504.6005.1004.2600.4700.5190virginica504.5005.1005.5505.8756.9005.5520.5520.6670variable: Petal.Widthsetosa500.1000.2000.2000.3000.6000.2460.1050.0000versicolor501.0001.2001.3001.5001.8001.3260.1980.2220virginica501.4001.8002.0002.3002.5002.0260.2750.2970 +SpeciesNmin.q1medianq3max.meansdmad# navariable: Sepal.Lengthsetosa504.3004.8005.0005.2005.8005.0060.3520.2970versicolor504.9005.6005.9006.3007.0005.9360.5160.5190virginica504.9006.2256.5006.9007.9006.5880.6360.5930variable: Sepal.Widthsetosa502.3003.2003.4003.6754.4003.4280.3790.3710versicolor502.0002.5252.8003.0003.4002.7700.3140.2970virginica502.2002.8003.0003.1753.8002.9740.3220.2970variable: Petal.Lengthsetosa501.0001.4001.5001.5751.9001.4620.1740.1480versicolor503.0004.0004.3504.6005.1004.2600.4700.5190virginica504.5005.1005.5505.8756.9005.5520.5520.6670variable: Petal.Widthsetosa500.1000.2000.2000.3000.6000.2460.1050.0000versicolor501.0001.2001.3001.5001.8001.3260.1980.2220virginica501.4001.8002.0002.3002.5002.0260.2750.2970 diff --git a/reference/delete_columns.html b/reference/delete_columns.html index 5def1524..9af699c7 100644 --- a/reference/delete_columns.html +++ b/reference/delete_columns.html @@ -1,6 +1,6 @@ Delete flextable columns — delete_columns • flextableDelete flextable columns — delete_columns • flextableDelete flextable part — delete_part • flextableDelete flextable part — delete_part • flextableDelete flextable rows — delete_rows • flextableDelete flextable rows — delete_rows • flextabledata.frame automatic printing as a flextable — df_printer • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -142,11 +142,11 @@ Examples - proudly brought to you by + proudly brought to you by diff --git a/reference/dim.flextable.html b/reference/dim.flextable.html index faec740c..ae552f21 100644 --- a/reference/dim.flextable.html +++ b/reference/dim.flextable.html @@ -1,6 +1,6 @@ Get widths and heights of flextable — dim.flextable • flextableGet widths and heights of flextable — dim.flextable • flextableGet optimal width and height of a flextable grob — dim.flextableGrob • flextableGet optimal width and height of a flextable grob — dim.flextableGrob • flextableCalculate pretty dimensions — dim_pretty • flextableCalculate pretty dimensions — dim_pretty • flextableMake blank columns as transparent — empty_blanks • flextableMake blank columns as transparent — empty_blanks • flextableFit a flextable to a maximum width — fit_to_width • flextableFit a flextable to a maximum width — fit_to_width • flextableFix border issues when cell are merged — fix_border_issues • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -90,11 +90,11 @@ Examples) print(ft) #> <style></style> -#> <div class="tabwid"><style>.cl-242cadbc{}.cl-242764a6{font-family:'DejaVu Sans';font-size:11pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-242764ba{font-family:'DejaVu Sans';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-24299d48{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-2429aec8{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2429aed2{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2429aedc{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 5pt solid rgba(255, 0, 0, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing='true' class='cl-242cadbc'><thead><tr style="overflow-wrap:break-word;"><th class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764a6">a</span></p></th><th class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764a6">b</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-2429aed2"><p class="cl-24299d48"><span class="cl-242764ba">1</span></p></td><td class="cl-2429aed2"><p class="cl-24299d48"><span class="cl-242764ba">6</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">2</span></p></td><td class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">7</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">3</span></p></td><td class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">8</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2"class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">4</span></p></td><td class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">9</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2429aedc"><p class="cl-24299d48"><span class="cl-242764ba">10</span></p></td></tr></tbody></table></div> +#> <div class="tabwid"><style>.cl-df8ca6da{}.cl-df8795d2{font-family:'DejaVu Sans';font-size:11pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-df8795dc{font-family:'DejaVu Sans';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-df89af48{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-df89bf7e{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-df89bf88{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-df89bf92{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 5pt solid rgba(255, 0, 0, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing='true' class='cl-df8ca6da'><thead><tr style="overflow-wrap:break-word;"><th class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795d2">a</span></p></th><th class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795d2">b</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-df89bf88"><p class="cl-df89af48"><span class="cl-df8795dc">1</span></p></td><td class="cl-df89bf88"><p class="cl-df89af48"><span class="cl-df8795dc">6</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">2</span></p></td><td class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">7</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">3</span></p></td><td class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">8</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2"class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">4</span></p></td><td class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">9</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df89bf92"><p class="cl-df89af48"><span class="cl-df8795dc">10</span></p></td></tr></tbody></table></div> ft <- fix_border_issues(ft) print(ft) #> <style></style> -#> <div class="tabwid"><style>.cl-2434ba16{}.cl-242f779a{font-family:'DejaVu Sans';font-size:11pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-242f77a4{font-family:'DejaVu Sans';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-2431a2cc{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-2431b460{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2431b46a{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2431b46b{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 5pt solid rgba(255, 0, 0, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing='true' class='cl-2434ba16'><thead><tr style="overflow-wrap:break-word;"><th class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f779a">a</span></p></th><th class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f779a">b</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-2431b46a"><p class="cl-2431a2cc"><span class="cl-242f77a4">1</span></p></td><td class="cl-2431b46a"><p class="cl-2431a2cc"><span class="cl-242f77a4">6</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f77a4">2</span></p></td><td class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f77a4">7</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f77a4">3</span></p></td><td class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f77a4">8</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2"class="cl-2431b46b"><p class="cl-2431a2cc"><span class="cl-242f77a4">4</span></p></td><td class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f77a4">9</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2431b46b"><p class="cl-2431a2cc"><span class="cl-242f77a4">10</span></p></td></tr></tbody></table></div> +#> <div class="tabwid"><style>.cl-df944638{}.cl-df8f44e4{font-family:'DejaVu Sans';font-size:11pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-df8f44ee{font-family:'DejaVu Sans';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-df91572a{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-df916724{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-df916725{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-df91672e{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 5pt solid rgba(255, 0, 0, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing='true' class='cl-df944638'><thead><tr style="overflow-wrap:break-word;"><th class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44e4">a</span></p></th><th class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44e4">b</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-df916725"><p class="cl-df91572a"><span class="cl-df8f44ee">1</span></p></td><td class="cl-df916725"><p class="cl-df91572a"><span class="cl-df8f44ee">6</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44ee">2</span></p></td><td class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44ee">7</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44ee">3</span></p></td><td class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44ee">8</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2"class="cl-df91672e"><p class="cl-df91572a"><span class="cl-df8f44ee">4</span></p></td><td class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44ee">9</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df91672e"><p class="cl-df91572a"><span class="cl-df8f44ee">10</span></p></td></tr></tbody></table></div>
x=−b±b2−4ac2ax = {-b \pm \sqrt{b^2-4ac} \over 2a}x=2a−b±b2−4acExamples - proudly brought to you by + proudly brought to you by diff --git a/reference/as_flextable.data.frame.html b/reference/as_flextable.data.frame.html index 31ec0dd2..ff2aaead 100644 --- a/reference/as_flextable.data.frame.html +++ b/reference/as_flextable.data.frame.html @@ -1,8 +1,6 @@ Transform and summarise a 'data.frame' into a flextable -Simple summary of a data.frame as a flextable — as_flextable.data.frame • flextableTransform and summarise a 'data.frame' into a flextable Simple summary of a data.frame as a flextable — as_flextable.data.frame • flextableTransform a 'gam' model into a flextable — as_flextable.gam • flextableTransform a 'gam' model into a flextable — as_flextable.gam • flextableTransform a 'glm' object into a flextable — as_flextable.glm • flextableTransform a 'glm' object into a flextable — as_flextable.glm • flextableTransform a 'grouped_data' object into a flextable — as_flextable.grouped_data • flextableTransform a 'grouped_data' object into a flextable — as_flextable.grouped_data • flextableTransform a 'htest' object into a flextable — as_flextable.htest • flextableTransform a 'htest' object into a flextable — as_flextable.htest • flextableMethod to transform objects into flextables — as_flextable • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -100,11 +100,11 @@ See also diff --git a/reference/as_flextable.kmeans.html b/reference/as_flextable.kmeans.html index e233c34e..9711e228 100644 --- a/reference/as_flextable.kmeans.html +++ b/reference/as_flextable.kmeans.html @@ -1,7 +1,7 @@ Transform a 'kmeans' object into a flextable — as_flextable.kmeans • flextableTransform a 'kmeans' object into a flextable — as_flextable.kmeans • flextableTransform a 'lm' object into a flextable — as_flextable.lm • flextableTransform a 'lm' object into a flextable — as_flextable.lm • flextableTransform a mixed model into a flextable — as_flextable.merMod • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -127,18 +127,18 @@ Examples ft } #> Loading required package: broom.mixed -groupEstimateStandard Errordfstatisticp-valueFixed effects(Intercept)16.7610.7758021.6200.0000***age0.6600.071809.2650.0000***Random effectsSubjectsd_(Intercept)2.327Subjectcor_age.(Intercept)-0.609Subjectsd_age0.226Residualsd_Observation1.310Signif. codes: 0 <= '***' < 0.001 < '**' < 0.01 < '*' < 0.05square root of the estimated residual variance: 1.3data's log-likelihood under the model: -221.3Akaike Information Criterion: 454.6Bayesian Information Criterion: 470.6 +groupEstimateStandard Errordfstatisticp-valueFixed effects(Intercept)16.7610.7758021.6200.0000***age0.6600.071809.2650.0000***Random effectsSubjectsd_(Intercept)2.327Subjectcor_age.(Intercept)-0.609Subjectsd_age0.226Residualsd_Observation1.310Signif. codes: 0 <= '***' < 0.001 < '**' < 0.01 < '*' < 0.05square root of the estimated residual variance: 1.3data's log-likelihood under the model: -221.3Akaike Information Criterion: 454.6Bayesian Information Criterion: 470.6 diff --git a/reference/as_flextable.pam.html b/reference/as_flextable.pam.html index 75f2b3e2..3640f7bc 100644 --- a/reference/as_flextable.pam.html +++ b/reference/as_flextable.pam.html @@ -1,7 +1,7 @@ Transform a 'pam' object into a flextable — as_flextable.pam • flextableTransform a 'pam' object into a flextable — as_flextable.pam • flextableTransform a 'summarizor' object into a flextable — as_flextable.summarizor • flextableTransform a 'summarizor' object into a flextable — as_flextable.summarizor • flextableTransform a 'table' object into a flextable — as_flextable.table • flextableTransform a 'table' object into a flextable — as_flextable.table • flextableTransform a 'tables::tabular' object into a flextable — as_flextable.tabular • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -190,7 +190,7 @@ Examples as_flextable(tab) } #> Loading required package: tables -SexStatisticStatushighlowmediumFemalemean4.574.735.09sd(1.04)(0.92)(0.66)Malemean4.584.405.64sd(0.83)(0.82)(1.11) +SexStatisticStatushighlowmediumFemalemean4.574.735.09sd(1.04)(0.92)(0.66)Malemean4.584.405.64sd(0.83)(0.82)(1.11) if (require("tables")) { tab <- tabular( (Species + 1) ~ (n = 1) + Format(digits = 2) * @@ -199,7 +199,7 @@ Examples ) as_flextable(tab) } -SpeciesSepal.LengthSepal.Widthnmeansdmeansdsetosa505.010.353.430.38versicolor505.940.522.770.31virginica506.590.642.970.32All1505.840.833.060.44 +SpeciesSepal.LengthSepal.Widthnmeansdmeansdsetosa505.010.353.430.38versicolor505.940.522.770.31virginica506.590.642.970.32All1505.840.833.060.44 if (require("tables")) { x <- tabular((Factor(gear, "Gears") + 1) * ((n = 1) + Percent() @@ -218,7 +218,7 @@ Examples ) ft } -Carburetors123468AllGears: 3n34350015Percent9129160047RowPct2027203300100ColPct4340100500047Gears: 4n44040012Percent12120120038RowPct333303300100ColPct57400400038Gears: 5n0201115Percent06033316RowPct0400202020100ColPct02001010010016Gears: Alln7103101132Percent223193133100RowPct223193133100ColPct100100100100100100100 +Carburetors123468AllGears: 3n34350015Percent9129160047RowPct2027203300100ColPct4340100500047Gears: 4n44040012Percent12120120038RowPct333303300100ColPct57400400038Gears: 5n0201115Percent06033316RowPct0400202020100ColPct02001010010016Gears: Alln7103101132Percent223193133100RowPct223193133100ColPct100100100100100100100 if (require("tables")) { tab <- tabular( (mean + mean) * (Sepal.Length + Sepal.Width) ~ 1, @@ -226,18 +226,18 @@ Examples ) as_flextable(tab) } -AllmeanSepal.Length5.843Sepal.Width3.057meanSepal.Length5.843Sepal.Width3.057 +AllmeanSepal.Length5.843Sepal.Width3.057meanSepal.Length5.843Sepal.Width3.057 diff --git a/reference/as_flextable.tabulator.html b/reference/as_flextable.tabulator.html index 26be00d9..ab953ff2 100644 --- a/reference/as_flextable.tabulator.html +++ b/reference/as_flextable.tabulator.html @@ -1,6 +1,6 @@ Transform a 'tabulator' object into a flextable — as_flextable.tabulator • flextableTransform a 'tabulator' object into a flextable — as_flextable.tabulator • flextableTransform a 'xtable' object into a flextable — as_flextable.xtable • flextableTransform a 'xtable' object into a flextable — as_flextable.xtable • flextableAdd row separators to grouped data — as_grouped_data • flextableAdd row separators to grouped data — as_grouped_data • flextableHighlight chunk — as_highlight • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -110,18 +110,18 @@ Examples) ft -Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 +Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 diff --git a/reference/as_i.html b/reference/as_i.html index 8d4485e1..fd337c34 100644 --- a/reference/as_i.html +++ b/reference/as_i.html @@ -3,7 +3,7 @@ italic font. It is used to add it to the content of a cell of the flextable with the functions compose(), append_chunks() -or prepend_chunks().">Italic chunk — as_i • flextableItalic chunk — as_i • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -106,18 +106,18 @@ Examples) ft -Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 +Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 diff --git a/reference/as_image.html b/reference/as_image.html index ab4d03b0..7008090f 100644 --- a/reference/as_image.html +++ b/reference/as_image.html @@ -7,7 +7,7 @@ -">Image chunk wrapper — as_image • flextableImage chunk wrapper — as_image • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -159,18 +159,18 @@ Examples#> Linking to ImageMagick 6.9.10.23 #> Enabled features: fontconfig, freetype, fftw, lcms, pango, webp, x11 #> Disabled features: cairo, ghostscript, heic, raw, rsvg -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies 5.13.51.40.2setosa 4.93.01.40.2setosa 4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies 5.13.51.40.2setosa 4.93.01.40.2setosa 4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa diff --git a/reference/as_paragraph.html b/reference/as_paragraph.html index ff325afb..0bacdb7f 100644 --- a/reference/as_paragraph.html +++ b/reference/as_paragraph.html @@ -5,7 +5,7 @@ This allows the concatenation of formatted pieces of text (chunks) that represent the content of a paragraph. The cells of a flextable contain each a single paragraph. This paragraph -is made of chunks that can be text, images or plots, equations and links.">Concatenate chunks in a flextable — as_paragraph • flextableConcatenate chunks in a flextable — as_paragraph • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -109,18 +109,18 @@ Examples) ft <- autofit(ft) ft -OzoneSolar.RWindTempMonthDay39836.9 81816411.5 7981525910.9 93611664.6 87861506.3 77621591.7 7662226614.9 58526357.4 85851682383.4 818254423614.9 81911 +OzoneSolar.RWindTempMonthDay39836.9 81816411.5 7981525910.9 93611664.6 87861506.3 77621591.7 7662226614.9 58526357.4 85851682383.4 818254423614.9 81911 diff --git a/reference/as_raster.html b/reference/as_raster.html index d3538038..c4aae5b9 100644 --- a/reference/as_raster.html +++ b/reference/as_raster.html @@ -3,7 +3,7 @@ raster. This function has been implemented to let flextable be printed on a ggplot object. The function is no longer very useful since gen_grob() exists and -will be deprecated in a future version.">Transform a flextable into a raster — as_raster • flextableTransform a flextable into a raster — as_raster • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -114,11 +114,11 @@ Examples - proudly brought to you by + proudly brought to you by diff --git a/reference/as_sub.html b/reference/as_sub.html index 436012ec..102668cd 100644 --- a/reference/as_sub.html +++ b/reference/as_sub.html @@ -3,7 +3,7 @@ subscript vertical alignment. It is used to add it to the content of a cell of the flextable with the functions compose(), append_chunks() -or prepend_chunks().">Subscript chunk — as_sub • flextableSubscript chunk — as_sub • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -108,18 +108,18 @@ Examples ft <- autofit(ft) ft -Sepal.Length anything +Sepal.Length anything diff --git a/reference/as_sup.html b/reference/as_sup.html index 27efb71d..cf7d39e6 100644 --- a/reference/as_sup.html +++ b/reference/as_sup.html @@ -3,7 +3,7 @@ superscript vertical alignment. It is used to add it to the content of a cell of the flextable with the functions compose(), append_chunks() -or prepend_chunks().">Superscript chunk — as_sup • flextableSuperscript chunk — as_sup • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -114,18 +114,18 @@ Examples ft <- autofit(ft) ft - anything Sepal.Width + anything Sepal.Width diff --git a/reference/as_word_field.html b/reference/as_word_field.html index 50304c3c..5ba1e75c 100644 --- a/reference/as_word_field.html +++ b/reference/as_word_field.html @@ -11,7 +11,7 @@ Do not forget to update the computed field in Word. Fields are defined but are not computed, this computing is an operation that has to be made by 'Microsoft Word' -(select all text and hit F9 when on mac os).">'Word' computed field — as_word_field • flextable'Word' computed field — as_word_field • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -188,11 +188,11 @@ Examples - proudly brought to you by + proudly brought to you by diff --git a/reference/autofit.html b/reference/autofit.html index 262b6d63..2c6d1c5f 100644 --- a/reference/autofit.html +++ b/reference/autofit.html @@ -13,7 +13,7 @@ There is an alternative to fixed-width layouts that works well with HTML and Word output that can be set with set_table_properties(layout = "autofit"), see -set_table_properties().">Adjusts cell widths and heights — autofit • flextableAdjusts cell widths and heights — autofit • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -153,20 +153,20 @@ See alsoExamples ft_1 <- flextable(head(mtcars)) ft_1 -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031ft_2 <- autofit(ft_1) +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031ft_2 <- autofit(ft_1) ft_2 -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 diff --git a/reference/before.html b/reference/before.html index 68df43b0..ba6fbfc7 100644 --- a/reference/before.html +++ b/reference/before.html @@ -1,6 +1,6 @@ Is an element before a match with entries — before • flextableIs an element before a match with entries — before • flextableSet background color — bg • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -138,7 +138,7 @@ Examplesft_1 <- bg(ft_1, j = "drat", bg = "#606060", part = "all") ft_1 <- color(ft_1, j = "drat", color = "white", part = "all") ft_1 -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 if (require("scales")) { ft_2 <- flextable(head(iris)) colourer <- col_numeric( @@ -155,18 +155,18 @@ Examples ft_2 } #> Loading required package: scales -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa diff --git a/reference/body_add_flextable.html b/reference/body_add_flextable.html index 86764f4a..f7dc3b27 100644 --- a/reference/body_add_flextable.html +++ b/reference/body_add_flextable.html @@ -1,6 +1,6 @@ Add flextable into a Word document — body_add_flextable • flextableAdd flextable into a Word document — body_add_flextable • flextableAdd flextable at boorkmark location in a Word document — body_replace_flextable_at_bkm • flextableAdd flextable at boorkmark location in a Word document — body_replace_flextable_at_bkm • flextableSet bold font — bold • flextableSet bold font — bold • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -106,11 +106,11 @@ Examples - proudly brought to you by + proudly brought to you by diff --git a/reference/border.html b/reference/border.html index 7b16b6d3..33782cf0 100644 --- a/reference/border.html +++ b/reference/border.html @@ -20,7 +20,7 @@ If you want to highlight specific cells with some borders, use -surround().">Cell borders update — border • flextableCell borders update — border • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -170,18 +170,18 @@ Examplesftab <- flextable(head(mtcars)) ftab <- border(ftab, border.top = fp_border(color = "orange")) ftab -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 diff --git a/reference/border_inner.html b/reference/border_inner.html index c8338be5..3418a43b 100644 --- a/reference/border_inner.html +++ b/reference/border_inner.html @@ -1,6 +1,6 @@ Set vertical & horizontal inner borders — border_inner • flextableSet vertical & horizontal inner borders — border_inner • flextableSet inner borders — border_inner_h • flextableSet inner borders — border_inner_h • flextableSet vertical inner borders — border_inner_v • flextableSet vertical inner borders — border_inner_v • flextableSet outer borders — border_outer • flextableSet outer borders — border_outer • flextableRemove borders — border_remove • flextableRemove borders — border_remove • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -82,22 +82,22 @@ Examplesft_1 <- flextable(dat) ft_1 <- theme_box(ft_1) ft_1 -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa7.03.24.71.4versicolor6.43.24.51.5versicolor6.93.14.91.5versicolor5.52.34.01.3versicolor6.52.84.61.5versicolor6.33.36.02.5virginica5.82.75.11.9virginica7.13.05.92.1virginica6.32.95.61.8virginica6.53.05.82.2virginica +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa7.03.24.71.4versicolor6.43.24.51.5versicolor6.93.14.91.5versicolor5.52.34.01.3versicolor6.52.84.61.5versicolor6.33.36.02.5virginica5.82.75.11.9virginica7.13.05.92.1virginica6.32.95.61.8virginica6.53.05.82.2virginica # remove all borders ft_2 <- border_remove(x = ft_1) ft_2 -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa7.03.24.71.4versicolor6.43.24.51.5versicolor6.93.14.91.5versicolor5.52.34.01.3versicolor6.52.84.61.5versicolor6.33.36.02.5virginica5.82.75.11.9virginica7.13.05.92.1virginica6.32.95.61.8virginica6.53.05.82.2virginica +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa7.03.24.71.4versicolor6.43.24.51.5versicolor6.93.14.91.5versicolor5.52.34.01.3versicolor6.52.84.61.5versicolor6.33.36.02.5virginica5.82.75.11.9virginica7.13.05.92.1virginica6.32.95.61.8virginica6.53.05.82.2virginica diff --git a/reference/chunk_dataframe.html b/reference/chunk_dataframe.html index 50fcb7db..bf980b64 100644 --- a/reference/chunk_dataframe.html +++ b/reference/chunk_dataframe.html @@ -1,7 +1,7 @@ Create a chunk representation suitable for flextable — chunk_dataframe • flextableCreate a chunk representation suitable for flextable — chunk_dataframe • flextableFormat character cells — colformat_char • flextableFormat character cells — colformat_char • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -106,18 +106,18 @@ Examples) z <- autofit(z) z -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa4.73.21.30.2setosa4.63.11.50.2setosa5.03.61.40.2setosa5.43.91.70.4setosa diff --git a/reference/colformat_date.html b/reference/colformat_date.html index c4bda5e2..39695eda 100644 --- a/reference/colformat_date.html +++ b/reference/colformat_date.html @@ -1,16 +1,16 @@ -Format date cells — colformat_date • flextableFormat date cells — colformat_date • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -112,18 +112,18 @@ Examplesft <- colformat_date(x = ft) ft <- autofit(ft) ft -zw2024-03-062024-03-042024-03-072024-03-032024-03-082024-03-02 +zw2024-05-062024-05-042024-05-072024-05-032024-05-082024-05-02 diff --git a/reference/colformat_datetime.html b/reference/colformat_datetime.html index 070d68bf..59c9f1d7 100644 --- a/reference/colformat_datetime.html +++ b/reference/colformat_datetime.html @@ -1,16 +1,16 @@ -Format datetime cells — colformat_datetime • flextableFormat datetime cells — colformat_datetime • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -112,18 +112,18 @@ Examplesft <- colformat_datetime(x = ft) ft <- autofit(ft) ft -zw2024-03-05 22:46:182024-02-102024-03-05 22:46:422024-01-172024-03-05 22:47:062023-12-24 +zw2024-05-05 08:17:282024-04-112024-05-05 08:17:522024-03-182024-05-05 08:18:162024-02-23 diff --git a/reference/colformat_double.html b/reference/colformat_double.html index b452344a..b5171524 100644 --- a/reference/colformat_double.html +++ b/reference/colformat_double.html @@ -1,16 +1,16 @@ -Format numeric cells — colformat_double • flextableFormat numeric cells — colformat_double • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -113,18 +113,18 @@ Examples big.mark = ",", digits = 2, na_str = "N/A" ) autofit(ft) -mpgcyldisphpdratwtqsecvsamgearcarb21.006.00160.00110.003.902.6216.460.001.004.004.0021.006.00160.00110.003.902.8817.020.001.004.004.0022.804.00108.0093.003.852.3218.611.001.004.001.0021.406.00258.00110.003.083.2119.441.000.003.001.0018.708.00360.00175.003.153.4417.020.000.003.002.0018.106.00225.00105.002.763.4620.221.000.003.001.00 +mpgcyldisphpdratwtqsecvsamgearcarb21.006.00160.00110.003.902.6216.460.001.004.004.0021.006.00160.00110.003.902.8817.020.001.004.004.0022.804.00108.0093.003.852.3218.611.001.004.001.0021.406.00258.00110.003.083.2119.441.000.003.001.0018.708.00360.00175.003.153.4417.020.000.003.002.0018.106.00225.00105.002.763.4620.221.000.003.001.00 diff --git a/reference/colformat_image.html b/reference/colformat_image.html index 94c31fd0..d1a6e8fc 100644 --- a/reference/colformat_image.html +++ b/reference/colformat_image.html @@ -1,16 +1,16 @@ -Format cells as images — colformat_image • flextableFormat cells as images — colformat_image • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -119,18 +119,18 @@ Examples) ft <- autofit(myft) ft -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.24.93.01.40.2setosa4.73.21.30.24.63.11.50.2setosa5.03.61.40.25.43.91.70.4setosa +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.24.93.01.40.2setosa4.73.21.30.24.63.11.50.2setosa5.03.61.40.25.43.91.70.4setosa diff --git a/reference/colformat_int.html b/reference/colformat_int.html index ebb1ff00..4c45efe6 100644 --- a/reference/colformat_int.html +++ b/reference/colformat_int.html @@ -1,16 +1,16 @@ -Format integer cells — colformat_int • flextableFormat integer cells — colformat_int • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -108,18 +108,18 @@ Examplesj <- c("vs", "am", "gear", "carb") z <- colformat_int(x = z, j = j, prefix = "# ") z -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 diff --git a/reference/colformat_lgl.html b/reference/colformat_lgl.html index 2f1ce968..a847b559 100644 --- a/reference/colformat_lgl.html +++ b/reference/colformat_lgl.html @@ -1,16 +1,16 @@ -Format logical cells — colformat_lgl • flextableFormat logical cells — colformat_lgl • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -110,18 +110,18 @@ Examplesz <- flextable(dat) z <- colformat_lgl(x = z, j = c("a", "b")) autofit(z) -abtruefalsefalsetrue +abtruefalsefalsetrue diff --git a/reference/colformat_num.html b/reference/colformat_num.html index 2b0bd533..42f744ba 100644 --- a/reference/colformat_num.html +++ b/reference/colformat_num.html @@ -3,7 +3,7 @@ The function is different from colformat_double() on numeric type columns. The function uses the format() function of R on numeric type columns. So this is normally what you see on the R console -most of the time (but scientific mode is disabled and NA are replaced).">Format numeric cells — colformat_num • flextableFormat numeric cells — colformat_num • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -151,18 +151,18 @@ Examples) ft <- autofit(ft) ft -mpgcyldisphpdratwtqsecvsamgearcarb21,061601103,902,62016,460144N/A61601103,902,87517,02014422,84108933,852,32018,61114121,462581103,083,21519,44103118,783601753,153,44017,02003218,162251052,763,46020,221031 +mpgcyldisphpdratwtqsecvsamgearcarb21,061601103,902,62016,460144N/A61601103,902,87517,02014422,84108933,852,32018,61114121,462581103,083,21519,44103118,783601753,153,44017,02003218,162251052,763,46020,221031 diff --git a/reference/color.html b/reference/color.html index 1f35f45c..e85ead9a 100644 --- a/reference/color.html +++ b/reference/color.html @@ -7,7 +7,7 @@ argument colkeys) is a common use case. The argument source has to be used to define what are the columns to be used for the color definition and the argument j has to be used to define where to apply -the colors and only accept values from colkeys.">Set font color — color • flextableSet font color — color • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -135,7 +135,7 @@ Examples i = ~ qsec < 18 & vs < 1 ) ft -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031 if (require("scales")) { scale <- scales::col_numeric(domain = c(-1, 1), palette = "RdBu") x <- as.data.frame(cor(iris[-5])) @@ -153,18 +153,18 @@ Examples ft_2 } #> Warning: Use `colformat_*()` instead. -colnameSepal.LengthSepal.WidthPetal.LengthPetal.WidthSepal.Length1.0-0.10.90.8Sepal.Width-0.11.0-0.4-0.4Petal.Length0.9-0.41.01.0Petal.Width0.8-0.41.01.0 +colnameSepal.LengthSepal.WidthPetal.LengthPetal.WidthSepal.Length1.0-0.10.90.8Sepal.Width-0.11.0-0.4-0.4Petal.Length0.9-0.41.01.0Petal.Width0.8-0.41.01.0 diff --git a/reference/colorize.html b/reference/colorize.html index 8a52e7f1..6c8b2f40 100644 --- a/reference/colorize.html +++ b/reference/colorize.html @@ -3,7 +3,7 @@ a font in color. It is used to add it to the content of a cell of the flextable with the functions compose(), append_chunks() -or prepend_chunks().">Colorize chunk — colorize • flextableColorize chunk — colorize • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -110,18 +110,18 @@ Examples) ft -Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 +Sepal.Length5.15.14.94.94.74.74.64.65.05.05.45.4 diff --git a/reference/compose.html b/reference/compose.html index 9f1da2bc..07140142 100644 --- a/reference/compose.html +++ b/reference/compose.html @@ -9,7 +9,7 @@ If you only need to add some content at the end or the beginning of paragraphs and keep existing content as it is, functions append_chunks() and -prepend_chunks() should be prefered.">Define displayed values and mixed content — compose • flextableDefine displayed values and mixed content — compose • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -136,7 +136,7 @@ Examples) ft_1 <- set_table_properties(ft_1, layout = "autofit") ft_1 -speeddist42410speed: 474722speed: 7816speed: 8 +speeddist42410speed: 474722speed: 7816speed: 8 # using `use_dot = TRUE` ---- set.seed(8) dat <- iris[sample.int(n = 150, size = 10), ] @@ -156,18 +156,18 @@ Examplesft_2 <- theme_vader(ft_2) ft_2 <- autofit(ft_2) ft_2 -Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpeciessetosasetosaversicolorversicolorversicolorversicolorversicolorvirginicavirginicavirginica +Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpeciessetosasetosaversicolorversicolorversicolorversicolorversicolorvirginicavirginicavirginica diff --git a/reference/continuous_summary.html b/reference/continuous_summary.html index 834afc44..5dbf1f16 100644 --- a/reference/continuous_summary.html +++ b/reference/continuous_summary.html @@ -1,16 +1,16 @@ -Continuous columns summary — continuous_summary • flextableContinuous columns summary — continuous_summary • flextable Skip to contents - + flextable - 0.9.5 + 0.9.6 @@ -92,18 +92,18 @@ Examples hide_grouplabel = FALSE ) ft_1 -SpeciesNmin.q1medianq3max.meansdmad# navariable: Sepal.Lengthsetosa504.3004.8005.0005.2005.8005.0060.3520.2970versicolor504.9005.6005.9006.3007.0005.9360.5160.5190virginica504.9006.2256.5006.9007.9006.5880.6360.5930variable: Sepal.Widthsetosa502.3003.2003.4003.6754.4003.4280.3790.3710versicolor502.0002.5252.8003.0003.4002.7700.3140.2970virginica502.2002.8003.0003.1753.8002.9740.3220.2970variable: Petal.Lengthsetosa501.0001.4001.5001.5751.9001.4620.1740.1480versicolor503.0004.0004.3504.6005.1004.2600.4700.5190virginica504.5005.1005.5505.8756.9005.5520.5520.6670variable: Petal.Widthsetosa500.1000.2000.2000.3000.6000.2460.1050.0000versicolor501.0001.2001.3001.5001.8001.3260.1980.2220virginica501.4001.8002.0002.3002.5002.0260.2750.2970 +SpeciesNmin.q1medianq3max.meansdmad# navariable: Sepal.Lengthsetosa504.3004.8005.0005.2005.8005.0060.3520.2970versicolor504.9005.6005.9006.3007.0005.9360.5160.5190virginica504.9006.2256.5006.9007.9006.5880.6360.5930variable: Sepal.Widthsetosa502.3003.2003.4003.6754.4003.4280.3790.3710versicolor502.0002.5252.8003.0003.4002.7700.3140.2970virginica502.2002.8003.0003.1753.8002.9740.3220.2970variable: Petal.Lengthsetosa501.0001.4001.5001.5751.9001.4620.1740.1480versicolor503.0004.0004.3504.6005.1004.2600.4700.5190virginica504.5005.1005.5505.8756.9005.5520.5520.6670variable: Petal.Widthsetosa500.1000.2000.2000.3000.6000.2460.1050.0000versicolor501.0001.2001.3001.5001.8001.3260.1980.2220virginica501.4001.8002.0002.3002.5002.0260.2750.2970 diff --git a/reference/delete_columns.html b/reference/delete_columns.html index 5def1524..9af699c7 100644 --- a/reference/delete_columns.html +++ b/reference/delete_columns.html @@ -1,6 +1,6 @@ Delete flextable columns — delete_columns • flextableDelete flextable columns — delete_columns • flextableDelete flextable part — delete_part • flextableDelete flextable part — delete_part • flextableDelete flextable rows — delete_rows • flextableDelete flextable rows — delete_rows • flextabledata.frame automatic printing as a flextable — df_printer • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -142,11 +142,11 @@ Examples - proudly brought to you by + proudly brought to you by diff --git a/reference/dim.flextable.html b/reference/dim.flextable.html index faec740c..ae552f21 100644 --- a/reference/dim.flextable.html +++ b/reference/dim.flextable.html @@ -1,6 +1,6 @@ Get widths and heights of flextable — dim.flextable • flextableGet widths and heights of flextable — dim.flextable • flextableGet optimal width and height of a flextable grob — dim.flextableGrob • flextableGet optimal width and height of a flextable grob — dim.flextableGrob • flextableCalculate pretty dimensions — dim_pretty • flextableCalculate pretty dimensions — dim_pretty • flextableMake blank columns as transparent — empty_blanks • flextableMake blank columns as transparent — empty_blanks • flextableFit a flextable to a maximum width — fit_to_width • flextableFit a flextable to a maximum width — fit_to_width • flextableFix border issues when cell are merged — fix_border_issues • flextableSkip to contents - + flextable - 0.9.5 + 0.9.6 @@ -90,11 +90,11 @@ Examples) print(ft) #> <style></style> -#> <div class="tabwid"><style>.cl-242cadbc{}.cl-242764a6{font-family:'DejaVu Sans';font-size:11pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-242764ba{font-family:'DejaVu Sans';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-24299d48{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-2429aec8{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2429aed2{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2429aedc{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 5pt solid rgba(255, 0, 0, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing='true' class='cl-242cadbc'><thead><tr style="overflow-wrap:break-word;"><th class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764a6">a</span></p></th><th class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764a6">b</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-2429aed2"><p class="cl-24299d48"><span class="cl-242764ba">1</span></p></td><td class="cl-2429aed2"><p class="cl-24299d48"><span class="cl-242764ba">6</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">2</span></p></td><td class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">7</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">3</span></p></td><td class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">8</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2"class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">4</span></p></td><td class="cl-2429aec8"><p class="cl-24299d48"><span class="cl-242764ba">9</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2429aedc"><p class="cl-24299d48"><span class="cl-242764ba">10</span></p></td></tr></tbody></table></div> +#> <div class="tabwid"><style>.cl-df8ca6da{}.cl-df8795d2{font-family:'DejaVu Sans';font-size:11pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-df8795dc{font-family:'DejaVu Sans';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-df89af48{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-df89bf7e{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-df89bf88{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-df89bf92{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 5pt solid rgba(255, 0, 0, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing='true' class='cl-df8ca6da'><thead><tr style="overflow-wrap:break-word;"><th class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795d2">a</span></p></th><th class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795d2">b</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-df89bf88"><p class="cl-df89af48"><span class="cl-df8795dc">1</span></p></td><td class="cl-df89bf88"><p class="cl-df89af48"><span class="cl-df8795dc">6</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">2</span></p></td><td class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">7</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">3</span></p></td><td class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">8</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2"class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">4</span></p></td><td class="cl-df89bf7e"><p class="cl-df89af48"><span class="cl-df8795dc">9</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df89bf92"><p class="cl-df89af48"><span class="cl-df8795dc">10</span></p></td></tr></tbody></table></div> ft <- fix_border_issues(ft) print(ft) #> <style></style> -#> <div class="tabwid"><style>.cl-2434ba16{}.cl-242f779a{font-family:'DejaVu Sans';font-size:11pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-242f77a4{font-family:'DejaVu Sans';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-2431a2cc{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-2431b460{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2431b46a{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-2431b46b{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 5pt solid rgba(255, 0, 0, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing='true' class='cl-2434ba16'><thead><tr style="overflow-wrap:break-word;"><th class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f779a">a</span></p></th><th class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f779a">b</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-2431b46a"><p class="cl-2431a2cc"><span class="cl-242f77a4">1</span></p></td><td class="cl-2431b46a"><p class="cl-2431a2cc"><span class="cl-242f77a4">6</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f77a4">2</span></p></td><td class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f77a4">7</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f77a4">3</span></p></td><td class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f77a4">8</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2"class="cl-2431b46b"><p class="cl-2431a2cc"><span class="cl-242f77a4">4</span></p></td><td class="cl-2431b460"><p class="cl-2431a2cc"><span class="cl-242f77a4">9</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-2431b46b"><p class="cl-2431a2cc"><span class="cl-242f77a4">10</span></p></td></tr></tbody></table></div> +#> <div class="tabwid"><style>.cl-df944638{}.cl-df8f44e4{font-family:'DejaVu Sans';font-size:11pt;font-weight:bold;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-df8f44ee{font-family:'DejaVu Sans';font-size:11pt;font-weight:normal;font-style:normal;text-decoration:none;color:rgba(0, 0, 0, 1.00);background-color:transparent;}.cl-df91572a{margin:0;text-align:right;border-bottom: 0 solid rgba(0, 0, 0, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0 solid rgba(0, 0, 0, 1.00);border-right: 0 solid rgba(0, 0, 0, 1.00);padding-bottom:5pt;padding-top:5pt;padding-left:5pt;padding-right:5pt;line-height: 1;background-color:transparent;}.cl-df916724{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-df916725{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 0.75pt solid rgba(102, 102, 102, 1.00);border-top: 0 solid rgba(0, 0, 0, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}.cl-df91672e{width:0.75in;background-color:transparent;vertical-align: middle;border-bottom: 5pt solid rgba(255, 0, 0, 1.00);border-top: 0.75pt solid rgba(102, 102, 102, 1.00);border-left: 0.75pt solid rgba(102, 102, 102, 1.00);border-right: 0.75pt solid rgba(102, 102, 102, 1.00);margin-bottom:0;margin-top:0;margin-left:0;margin-right:0;}</style><table data-quarto-disable-processing='true' class='cl-df944638'><thead><tr style="overflow-wrap:break-word;"><th class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44e4">a</span></p></th><th class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44e4">b</span></p></th></tr></thead><tbody><tr style="overflow-wrap:break-word;"><td class="cl-df916725"><p class="cl-df91572a"><span class="cl-df8f44ee">1</span></p></td><td class="cl-df916725"><p class="cl-df91572a"><span class="cl-df8f44ee">6</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44ee">2</span></p></td><td class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44ee">7</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44ee">3</span></p></td><td class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44ee">8</span></p></td></tr><tr style="overflow-wrap:break-word;"><td rowspan="2"class="cl-df91672e"><p class="cl-df91572a"><span class="cl-df8f44ee">4</span></p></td><td class="cl-df916724"><p class="cl-df91572a"><span class="cl-df8f44ee">9</span></p></td></tr><tr style="overflow-wrap:break-word;"><td class="cl-df91672e"><p class="cl-df91572a"><span class="cl-df8f44ee">10</span></p></td></tr></tbody></table></div>
group
Estimate
Standard Error
df
statistic
p-value
Fixed effects
(Intercept)
16.761
0.775
80
21.620
0.0000
***
age
0.660
0.071
9.265
Random effects
Subject
sd_(Intercept)
2.327
cor_age.(Intercept)
-0.609
sd_age
0.226
Residual
sd_Observation
1.310
Signif. codes: 0 <= '***' < 0.001 < '**' < 0.01 < '*' < 0.05
square root of the estimated residual variance: 1.3
data's log-likelihood under the model: -221.3
Akaike Information Criterion: 454.6
Bayesian Information Criterion: 470.6
Sex
Statistic
Status
high
low
medium
Female
mean
4.57
4.73
5.09
sd
(1.04)
(0.92)
(0.66)
Male
4.58
4.40
5.64
(0.83)
(0.82)
(1.11)
n
50
5.01
0.35
3.43
0.38
versicolor
5.94
0.52
2.77
0.31
virginica
6.59
0.64
2.97
0.32
All
5.84
0.83
3.06
0.44
Carburetors
Gears: 3
Percent
16
47
RowPct
20
27
33
100
ColPct
43
40
Gears: 4
38
57
Gears: 5
Gears: All
7
32
22
31
5.843
3.057
39
83
6.9
81
64
79
259
10.9
87
6.3
77
21
59
76
266
58
26
35
85
168
238
3.4
25
44
236
Sepal.Length anything
anything Sepal.Width
ft_1 <- flextable(head(mtcars)) ft_1 -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031ft_2 <- autofit(ft_1) +mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031ft_2 <- autofit(ft_1) ft_2 -mpgcyldisphpdratwtqsecvsamgearcarb21.061601103.902.62016.46014421.061601103.902.87517.02014422.84108933.852.32018.61114121.462581103.083.21519.44103118.783601753.153.44017.02003218.162251052.763.46020.221031
7.0
6.4
4.5
5.5
2.3
4.0
6.5
2.8
3.3
6.0
2.5
2.7
1.9
7.1
5.9
2.1
2.9
5.6
1.8
2.2
z
w
2024-03-06
2024-03-04
2024-03-07
2024-03-03
2024-03-08
2024-03-02
2024-05-06
2024-05-04
2024-05-07
2024-05-03
2024-05-08
2024-05-02
2024-03-05 22:46:18
2024-02-10
2024-03-05 22:46:42
2024-01-17
2024-03-05 22:47:06
2023-12-24
2024-05-05 08:17:28
2024-04-11
2024-05-05 08:17:52
2024-03-18
2024-05-05 08:18:16
2024-02-23
21.00
6.00
160.00
110.00
2.62
0.00
1.00
4.00
2.88
22.80
108.00
93.00
2.32
21.40
258.00
18.70
8.00
360.00
175.00
3.44
2.00
18.10
225.00
105.00
3.46
a
b
true
false
21,0
3,90
2,620
16,46
N/A
2,875
17,02
22,8
3,85
2,320
18,61
21,4
3,08
3,215
19,44
18,7
3,15
3,440
18,1
2,76
3,460
20,22
colname
1.0
-0.1
0.9
0.8
-0.4
speed
dist
speed: 4
speed: 7
speed: 8
N
min.
q1
median
q3
max.
mad
# na
variable: Sepal.Length
4.300
4.800
5.000
5.200
5.800
5.006
0.352
0.297
4.900
5.600
5.900
6.300
7.000
5.936
0.516
0.519
6.225
6.500
6.900
7.900
6.588
0.636
0.593
variable: Sepal.Width
2.300
3.200
3.400
3.675
4.400
3.428
0.379
0.371
2.000
2.525
2.800
3.000
0.314
3.175
3.800
2.974
0.322
variable: Petal.Length
1.000
1.400
1.500
1.575
1.900
1.462
0.174
0.148
4.000
4.350
4.600
5.100
4.260
0.470
4.500
5.550
5.875
5.552
0.552
0.667
variable: Petal.Width
0.100
0.200
0.300
0.600
0.246
0.105
0.000
1.200
1.300
1.800
1.326
0.198
0.222
2.500
2.026
0.275