A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://davidgohel.github.io/flextable/reference/dim_pretty.html below:

Calculate pretty dimensions — dim_pretty • flextable

return minimum estimated widths and heights for each table columns and rows in inches.

Usage
dim_pretty(x, part = "all", unit = "in", hspans = "none")
Arguments
x

flextable object

part

partname of the table (one of 'all', 'body', 'header' or 'footer')

unit

unit for returned values, one of "in", "cm", "mm".

hspans

specifies how cells that are horizontally are included in the calculation. It must be one of the following values "none", "divided" or "included". If "none", widths of horizontally spanned cells is set to 0 (then do not affect the widths); if "divided", widths of horizontally spanned cells is divided by the number of spanned cells; if "included", all widths (included horizontally spanned cells) will be used in the calculation.

Examples
ftab <- flextable(head(mtcars))
dim_pretty(ftab)
#> $widths
#>  [1] 0.5279654 0.4020431 0.5011845 0.4767908 0.5253545 0.6225563 0.6225563
#>  [8] 0.3551952 0.4276304 0.5325905 0.5225943
#> 
#> $heights
#> [1] 0.3330395 0.3007383 0.3007383 0.3007383 0.3007383 0.3007383 0.3007383
#> 

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4