Learn R Programming

flextable (version 0.9.11)

nrow_part: Number of rows of a part

Description

returns the number of lines in a part of flextable.

Usage

nrow_part(x, part = "body")

Arguments

x

a 'flextable' object, see flextable-package to learn how to create 'flextable' object.

part

part selector, see section Part selection with the part parameter in <Selectors in flextable>. Value 'all' can be used.

See Also

Other functions for flextable size management: autofit(), dim.flextable(), dim_pretty(), fit_to_width(), flextable_dim(), height(), hrule(), ncol_keys(), width()

Examples

Run this code
library(flextable)
ft <- qflextable(head(cars))
nrow_part(ft, part = "body")

Run the code above in your browser using DataLab