Skip to contents

Add number of row attributes for a table

Usage

rtf_nrow(tbl)

Arguments

tbl

A data frame

Value

a data frame with number of row attributes

Specification

The contents of this section are shown in PDF user manual only.

Examples

library(dplyr) # required for running example
tbl <- iris[c(1:4, 50:54), ] %>%
  rtf_title(title = "Iris example") %>%
  rtf_body()
r2rtf:::rtf_nrow(tbl)
#>    Sepal.Length Sepal.Width Petal.Length Petal.Width    Species
#> 1           5.1         3.5          1.4         0.2     setosa
#> 2           4.9           3          1.4         0.2     setosa
#> 3           4.7         3.2          1.3         0.2     setosa
#> 4           4.6         3.1          1.5         0.2     setosa
#> 50            5         3.3          1.4         0.2     setosa
#> 51            7         3.2          4.7         1.4 versicolor
#> 52          6.4         3.2          4.5         1.5 versicolor
#> 53          6.9         3.1          4.9         1.5 versicolor
#> 54          5.5         2.3            4         1.3 versicolor