Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
DSCC
FSO Metadata Auto R
Commits
3dec8494
Commit
3dec8494
authored
Oct 20, 2021
by
Pauline Maury Laribière
Browse files
getting started with R apis
parent
3d30d334
Pipeline
#268911
passed with stage
in 2 minutes and 49 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
api_call.R
0 → 100644
View file @
3dec8494
library
(
httr
)
library
(
jsonlite
)
res
<-
GET
(
"https://www.i14y.admin.ch/api/ContentConfigurations"
)
json
<-
fromJSON
(
rawToChar
(
res
$
content
))
names
(
json
)
json
$
identifier
res
<-
GET
(
"https://www.i14y.admin.ch/api/ContentConfigurations/HCL_CH_ISCO_19_PROF"
)
cc
<-
fromJSON
(
rawToChar
(
res
$
content
))
res
<-
GET
(
"https://www.i14y.admin.ch/api/Nomenclatures/Childnodes/HCL_CH_ISCO_19_PROF/fr/.?additionalProp1=string"
)
ncn
<-
fromJSON
(
rawToChar
(
res
$
content
))
data1
<-
read.csv
(
"https://www.i14y.admin.ch/api/Nomenclatures/HCL_CH_ISCO_19_PROF/levelexport/CSV?level=1&annotations=true&additionalProp2=string&language=fr"
)
data2
<-
read.csv
(
"https://www.i14y.admin.ch/api/Nomenclatures/HCL_CH_ISCO_19_PROF/multiplelevels/CSV?language=fr&levelFrom=1&levelTo=4&annotations=true&additionalProp1=string"
)
install.R
View file @
3dec8494
install.packages
(
c
(
"httr"
,
"jsonlite"
))
devtools
::
install_github
(
"opensdmx/rsdmx"
)
\ No newline at end of file
metadata-auto-r-library.Rproj
View file @
3dec8494
...
...
@@ -10,4 +10,4 @@ NumSpacesForTab: 2
Encoding: UTF-8
RnwWeave: Sweave
LaTeX: pdfLaTeX
\ No newline at end of file
LaTeX: pdfLaTeX
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment