-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.R
More file actions
53 lines (42 loc) · 1.24 KB
/
run.R
File metadata and controls
53 lines (42 loc) · 1.24 KB
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
source("config.R")
### 1. Download ####
# Use the function to download SDGs data
do_get_sdg_api()
### 2. Data cleaning ####
# Function to clean the data downloaded
indat <- do_clean()
### 3. Tabulating ####
tab <- do_tab_country(indat, country = "Indonesia")
### 4. Visualise ####
# Generate and interactive plot with the data cleaned
do_plot()
### 5. Map ####
do_map()
### Resources ####
# https://unstats.un.org/sdgapi/swagger/
# https://unstats.un.org/sdgapi/swagger/#!/Series/V1SdgSeriesDataCSVPost
# https://unstats.un.org/sdgs/UNSDGAPIV5/swagger/index.html
# https://unstats.un.org/sdgs/indicators/SDG_Updateinfo.xlsx
# https://registry.sdmx.org/data/datastructure.html
# IAG-SDGs
# [Observation status]
# A Normal value
# B Time series break
# D Definition differs
# E Estimated value
# F Forecast value
# G Experimental value
# H Missing value; holiday or weekend
# I Imputed value (CCSA definition)
# J Derogation
# K Data included in another category
# L Missing value; data exist but were not collected
# M Missing value; data cannot exist
# N Not significant
# O Missing value
# P Provisional value
# Q Missing value; suppressed
# S Strike and other special events
# U Low reliability
# V Unvalidated value
# W Includes data from another category