You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/data.R
+87-12Lines changed: 87 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
#' @param level A `character` string specifying the NUTS level ("0", "1", "2", or "3").
9
9
#' @param x_filters A `named list` where the names are the filter fields for the x variable and the values are the selected values for those fields. Default is an empty list. To find out which filters to use, use \code{\link{mi_source_filters}} with the desired `source_name`.
10
10
#' @param y_filters (Optional) A `named list` where the names are the filter fields for the y variable and the values are the selected values for those fields. Default is `NULL`. To find out which filters to use, use \code{\link{mi_source_filters}} with the desired `source_name`.
11
-
#' @param limit An `integer` specifying the maximum number of results to return. Default is 2500.
11
+
#' @param limit An `integer` specifying the maximum number of results to return. Default is 2500. This default should be enough for most uses, as it is well above the number of NUTS 3 regions in the EU. The maximum limited by the API is 10000.
12
12
#'
13
13
#' @return A `tibble` with the following columns:
14
14
#'
@@ -21,6 +21,7 @@
21
21
#' * `x`: the value of the univariate variable.
22
22
#' * `y` (optional): the value of the y variable (only included when `y_source` is provided).
23
23
#'
24
+
#' @importFrom rlang .data
24
25
#' @export
25
26
#'
26
27
#' @examples
@@ -30,7 +31,7 @@
30
31
#' x_source = "TGS00010",
31
32
#' year = 2020,
32
33
#' level = "2",
33
-
#' x_filters = list(isced11 = "TOTAL", unit = "PC", age = "Y_GE15", freq = "A")
34
+
#' x_filters = list(isced11 = "TOTAL", sex = "F")
34
35
#' )
35
36
#'
36
37
#' # Bivariate example
@@ -39,8 +40,8 @@
39
40
#' y_source = "DEMO_R_MLIFEXP",
40
41
#' year = 2020,
41
42
#' level = "2",
42
-
#' x_filters = list(isced11 = "TOTAL", unit = "PC", age = "Y_GE15", freq = "A"),
0 commit comments