period: Period

Description Usage Arguments Details Value Note See Also Examples

View source: R/period.R

Description

Paste two years to form a period string.

Usage

1
period(x, y = NULL)

Arguments

x

the first year, vector of years, matrix, or data frame.

y

the last year, if x is only the first year.

Details

If x is a vector or a data frame, then the lowest and highest years are used, and y is ignored.

If x is a matrix or data frame, this function looks for years in the first column. If the values of the first column do not look like years (four digits), then it looks for years in the row names.

Value

A string of the form "1990-2000".

Note

This function can be useful when working with draft.data.

See Also

paste is the underlying function to paste strings.

draft.data has an argument called period.

TAF-package gives an overview of the package.

Examples

1
2
3
4
5
6
7
8
9

TAF documentation built on April 7, 2021, 5:06 p.m.