using_open_api_example
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
using_open_api_example [2020/06/04 01:46] – created hkimscil | using_open_api_example [2024/05/23 10:25] (current) – hkimscil | ||
---|---|---|---|
Line 32: | Line 32: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | |||
+ | http:// | ||
+ | http:// | ||
+ | |||
+ | < | ||
+ | install.packages(" | ||
+ | library(XML) | ||
+ | # | ||
+ | # https:// | ||
+ | # | ||
+ | mykey <- " | ||
+ | # | ||
+ | # | ||
+ | url = " | ||
+ | auth_key = mykey | ||
+ | type = ' | ||
+ | service = ' | ||
+ | startindex = ' | ||
+ | endindex = ' | ||
+ | api_url = paste(url, auth_key, type, service, startindex, endindex, sep = '/' | ||
+ | |||
+ | api_url | ||
+ | |||
+ | parsedXml < | ||
+ | |||
+ | rowXml <- getNodeSet(parsedXml, | ||
+ | |||
+ | api_data < | ||
+ | |||
+ | #구조 확인 | ||
+ | str(api_data) | ||
+ | |||
+ | #테이블 확인 | ||
+ | View(api_data) | ||
+ | api_data | ||
+ | |||
+ | write.table(api_data, | ||
+ | file = " | ||
+ | append = FALSE, quote = TRUE, sep = ",", | ||
+ | eol = " | ||
+ | row.names = F) | ||
+ | |||
+ | </ | ||
+ | |||
---- | ---- | ||
- | {{all_comb.xlsx}} | + | {{:all_comb.xlsx}} |
< | < | ||
library(RCurl) | library(RCurl) | ||
Line 88: | Line 133: | ||
</ | </ | ||
- | {{ani_plot.png}} | + | {{:ani_plot.png}} |
- | {{myTdm-ani.txt}} | + | {{:myTdm-ani.txt}} |
< | < |
using_open_api_example.1591202789.txt.gz · Last modified: 2020/06/04 01:46 by hkimscil