fivereg_recent: The five most recent published registers.

View source: R/fivereg_recent.R

fivereg_recentR Documentation

The five most recent published registers.

Description

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

Usage

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


library(regregrap)
report_data <- phase_date_data(regreg)
fivereg_recent(report_data)


Leilayousefi/DataTidying documentation built on April 1, 2022, 6:24 p.m.