get_timetable_for_variable: Returns data for one variable of a data set.

Description Usage Arguments Value

View source: R/get_timetable_for_variable.R

Description

Extracts a data set for one variable where each row is on region (e.g. NUTS3-region) and each column contains the values for one year.

Usage

1
2
3
4
5
6
get_timetable_for_variable(
  VarName,
  data = EntrancesData,
  NUTS_IDs = "all",
  years = c(1990:2020)
)

Arguments

VarName

character string, with the name of the variable for which we want the time table. Can be left out, if data set contains only values for one variable.

data

data frame, from which you want to extract your data. The data frame must contain a column called variable. Default is the EntrancesData data set.

NUTS_IDs

numeric vector, containing the IDs of the regions, e.g. NUTS3 IDs. If not defined, all regions contained in the data set are included.

years

numeric vector, containing all years of interest. Default is 1990 to 2020.

Value

dataframe, format: first column NUTS_ID, other columns values for each year


THartl1/EntrancesDataPackage documentation built on Dec. 18, 2021, 4:01 p.m.