-
Notifications
You must be signed in to change notification settings - Fork 1
/
get_info_covid19mobility.R
88 lines (82 loc) · 5.48 KB
/
get_info_covid19mobility.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#' Get information about the datasets provided by covid19mobility
#'
#' @description Returns information about the datasets in this package for covid19R harvesting
#'
#' @return a tibble of information about the datasets in this package
#' @export get_info_covid19mobility
#'
#' @examples
#' \donttest{
#'
#' # get the dataset info from this package
#' get_info_covid19mobility()
#' }
#'
get_info_covid19mobility <- function() {
dplyr::tribble(
~data_set_name, ~package_name, ~function_to_get_data,
~data_details, ~data_url, ~license_url,
~data_types, ~location_types,
~spatial_extent, ~has_geospatial_info,
"covid19mobility_apple_country",
"covid19mobility",
"refresh_covid19mobility_apple_country",
"Data reflects relative volume of directions requests compared to a baseline volume on January 13th, 2020 for multiple transportation modes aggregated at the country level.",
"https://www.apple.com/covid19/mobility",
"https://www.apple.com/covid19/mobility",
"driving, walking, transit", # COMMA SEPARATED STRING OF DATA TYPES
"country", # COMMA SEPARATED STRING OF LOCATION TYPES
"global", # HOW LARGE IS THE AREA COVERED BY THE WHOLE DATASET? COUNTRY? CONTINENT? WORLD? OTHER?
FALSE, # IS THERE GEOSPATIAL INFORMATION, E.G. LAT/LONG? TRUE/FALSE
"covid19mobility_apple_subregion",
"covid19mobility",
"refresh_covid19mobility_apple_subregion",
"Data reflects relative volume of directions requests compared to a baseline volume on January 13th, 2020 for multiple transportation modes aggregated at the subregion (state) level.",
"https://www.apple.com/covid19/mobility",
"https://www.apple.com/covid19/mobility",
"driving, walking, transit", # COMMA SEPARATED STRING OF DATA TYPES
"state", # COMMA SEPARATED STRING OF LOCATION TYPES
"global", # HOW LARGE IS THE AREA COVERED BY THE WHOLE DATASET? COUNTRY? CONTINENT? WORLD? OTHER?
FALSE, # IS THERE GEOSPATIAL INFORMATION, E.G. LAT/LONG? TRUE/FALSE
"covid19mobility_apple_city",
"covid19mobility",
"refresh_covid19mobility_apple_city",
"Data reflects relative volume of directions requests compared to a baseline volume on January 13th, 2020 for multiple transportation modes aggregated at the city level.",
"https://www.apple.com/covid19/mobility",
"https://www.apple.com/covid19/mobility",
"driving, walking, transit", # COMMA SEPARATED STRING OF DATA TYPES
"city", # COMMA SEPARATED STRING OF LOCATION TYPES
"global", # HOW LARGE IS THE AREA COVERED BY THE WHOLE DATASET? COUNTRY? CONTINENT? WORLD? OTHER?
TRUE, # IS THERE GEOSPATIAL INFORMATION, E.G. LAT/LONG? TRUE/FALSE,
"covid19mobility_google_country",
"covid19mobility",
"refresh_covid19mobility_google_country",
"Changes for each day are compared to a baseline value for that day of the week as compared to the 5-week period Jan 3-Feb 6, 2020 for visits to places falling in to certain categories.",
"https://www.google.com/covid19/mobility/",
"https://www.google.com/covid19/mobility/",
"retail_and_recreation_percent_change_from_baseline,grocery_and_pharmacy_percent_change_from_baseline,parks_percent_change_from_baseline,transit_stations_percent_change_from_baseline,workplaces_percent_change_from_baseline,residential_percent_change_from_baseline", # COMMA SEPARATED STRING OF DATA TYPES
"country", # COMMA SEPARATED STRING OF LOCATION TYPES
"global", # HOW LARGE IS THE AREA COVERED BY THE WHOLE DATASET? COUNTRY? CONTINENT? WORLD? OTHER?
FALSE, # IS THERE GEOSPATIAL INFORMATION, E.G. LAT/LONG? TRUE/FALSE
"covid19mobility_google_subregions",
"covid19mobility",
"refresh_covid19mobility_google_subregions",
"Changes for each day are compared to a baseline value for that day of the week as compared to the 5-week period Jan 3-Feb 6, 2020 for visits to places falling in to certain categories. Data is aggregated at the state or subdivision level.",
"https://www.google.com/covid19/mobility/",
"https://www.google.com/covid19/mobility/",
"retail_and_recreation_percent_change_from_baseline,grocery_and_pharmacy_percent_change_from_baseline,parks_percent_change_from_baseline,transit_stations_percent_change_from_baseline,workplaces_percent_change_from_baseline,residential_percent_change_from_baseline", # COMMA SEPARATED STRING OF DATA TYPES
"state", # COMMA SEPARATED STRING OF LOCATION TYPES
"global", # HOW LARGE IS THE AREA COVERED BY THE WHOLE DATASET? COUNTRY? CONTINENT? WORLD? OTHER?
FALSE, # IS THERE GEOSPATIAL INFORMATION, E.G. LAT/LONG? TRUE/FALSE
"covid19mobility_google_us_counties",
"covid19mobility",
"refresh_covid19mobility_google_us_counties",
"Changes for each day are compared to a baseline value for that day of the week as compared to the 5-week period Jan 3-Feb 6, 2020 for visits to places falling in to certain categories. Data is aggregated at the county level for the USA only.",
"https://www.google.com/covid19/mobility/",
"https://www.google.com/covid19/mobility/",
"retail_and_recreation_percent_change_from_baseline,grocery_and_pharmacy_percent_change_from_baseline,parks_percent_change_from_baseline,transit_stations_percent_change_from_baseline,workplaces_percent_change_from_baseline,residential_percent_change_from_baseline", # COMMA SEPARATED STRING OF DATA TYPES
"county", # COMMA SEPARATED STRING OF LOCATION TYPES
"country", # HOW LARGE IS THE AREA COVERED BY THE WHOLE DATASET? COUNTRY? CONTINENT? WORLD? OTHER?
FALSE # IS THERE GEOSPATIAL INFORMATION, E.G. LAT/LONG? TRUE/FALSE
)
}