individualSPF: Download individual mean survey data

Description Usage Arguments Details Value Examples

View source: R/individual.r

Description

Download individual mean survey data

Usage

1
individualSPF(survey = "NGDP", variable = "NGDP1")

Arguments

survey

The survey you wish to download

variable

The variable name indicating the forecast horizon, e.g. "NGDP1" or "CPI2".

Details

This function downloads an individual survey

Value

individual SPF 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

series

An object of the class ts containing the downloaded series

Examples

1
2
3
4
5
## Not run: 
# download the growth rate forecasts for the consumer price index
tmp <- downloadSPF(survey = "CPI", type = "growth")

## End(Not run)

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