downloadSPF: Download survey data

Description Usage Arguments Value Examples

View source: R/survey.r

Description

Download survey data

Usage

1
downloadSPF(survey = "NGDP", type = "mean")

Arguments

survey

The survey you wish to download

type

The type you wish you to download, i.e. mean, median or annualized growth rates

Value

downloadSPF returns an object of class "survey".

An object of class "survey" is a list containing the following components

survey

The name of the survey

type

Type of the survey, i.e. mean, median, growth, or individual (see individualSPF)

variable

Name of the variable indicating the forecast horizon, e.g. "NGDP1", or "NGDP2", downloaded. If "all", all forecast horizons were downloaded

sseries

An object of the class ts containing the downloaded series

Examples

1
tmp <- downloadSPF(survey = "CPI", type = "growth")

joergrieger/Survey documentation built on Nov. 15, 2020, 12:53 a.m.