Learn R Programming

gdldata (version 0.1)

set_extrapolation_years_linear: Set the number of years to extrapolate linearly.

Description

Sets the number of years to linearly extrapolate at dataset edges. Turns extrapolation on if it isn't already. Overrides the number of nearest years if set.

Usage

set_extrapolation_years_linear(session, years)

Value

An amended GDL session object.

Arguments

session

A valid GDL session object to interface with.

years

Number of years to extrapolate (integer)

Examples

Run this code
if (FALSE) {
# Create a session using your API token (provided by environment here)
session <- gdl_session(Sys.getenv('GDL_API_TOKEN'))
session <- set_extrapolation_years_linear(session, 3)
}

Run the code above in your browser using DataLab