fivereg_recent: The five most recent published registers.

Description Usage Arguments Details Value Examples

Description

The fivereg_recent function expects the year_phase_data and outputs a character string.

Usage

1
fivereg_recent(x, n = 5)

Arguments

x

Input object of year_phase_data class.

n

The n passed to head.

Details

The registers are sorted by publication date and name by alphabetical order. The top five registers are output as a character string including commas and an and, for inclusion in the report.

Value

Returns a character string of the five most recent registers.

Examples

1
2
3
library(regregrap)
report_data <- phase_date_data(regreg)
fivereg_recent(report_data)

mammykins/regregrap documentation built on May 16, 2019, 9:14 p.m.