R: Set paragraph paddings

padding {flextable} | R Documentation

## Set paragraph paddings

### Description

change paddings of selected rows and columns of a flextable.

### Usage

    padding(x, i = NULL, j = NULL, padding = NULL, padding.top = NULL,
      padding.bottom = NULL, padding.left = NULL, padding.right = NULL,
      part = "body")

### Arguments

`x` | a flextable object
`i` | rows selection
`j` | columns selection
`padding` | padding (shortcut for top, bottom, left and right)
`padding.top` | padding top
`padding.bottom` | padding bottom
`padding.left` | padding left
`padding.right` | padding right
`part` | partname of the table (one of 'all', 'body', 'header', 'footer')

### Examples

    ft <- flextable(mtcars)
    ft <- padding(ft, padding.top = 4)

[Package flextable version 0.4.5 Index]