R/data-indicators.R

#' Swiss Economic Indicators
#'
#' A collection of datasets containing economic indicators for Switzerland.
#'
#' - `baro`: The KOF barometer, a monthly business cycle indicator.
#' - `fcurve`: The F-curve, a daily business cycle indicator.
#' - `gdp`: Quarterly GDP data (real, seasonally adjusted).
#' - `wea`: The Weekly Economic Activity (WEA) indicator.
#'
#' @section Datasets:
#' - `baro`:
#'   - Source: [KOF Swiss Economic Institute](https://datenservice.kof.ethz.ch/)
#'   - Timeframe: January 2004 - December 2022
#'   - Frequency: Monthly
#'   - Format: A tibble with monthly observations and 2 variables:
#'     - `time`: Date, the month and year of the observation.
#'     - `values`: Numeric, the value of the KOF barometer.
#'
#' - `fcurve`:
#'   - Source: [Burri and Kaufmann GitHub](https://github.com/dankaufmann/f-curve)
#'   - Timeframe: January 2004 - December 2022
#'   - Frequency: Daily
#'   - Format: A tibble with daily observations and 2 variables:
#'     - `time`: Date, the date of the observation.
#'     - `values`: Numeric, the value of the F-curve (inverted for compatibility).
#'
#' - `gdp`:
#'   - Source: [SECO](https://www.seco.admin.ch/)
#'   - Timeframe: January 2004 - December 2022
#'   - Frequency: Quarterly
#'   - Format: A tibble with quarterly observations and 2 variables:
#'     - `time`: Date, the quarter and year of the observation.
#'     - `values`: Numeric, the real GDP (seasonally adjusted).
#'
#' - `wea`:
#'   - Source: [SECO WEA Indicator](https://www.seco.admin.ch/)
#'   - Timeframe: January 2005 - December 2022
#'   - Frequency: Weekly
#'   - Format: A tibble with weekly observations and 2 variables:
#'     - `time`: Date, the week and year of the observation.
#'     - `values`: Numeric, the value of the WEA.
#'
#' @examples
#' # Load and plot `baro`
#' data(baro)
#' library(tsbox)
#' suppressMessages(ts_plot(baro))
#' @format NULL
"gdp"

#' @rdname gdp
#' @format NULL
"baro"

#' @rdname gdp
#' @format NULL
"wea"

#' @rdname gdp
#' @format NULL
"fcurve"

Try the bridgr package in your browser

Any scripts or data that you put into this service are public.

bridgr documentation built on April 3, 2025, 9:22 p.m.