Description Usage Arguments Details Value Examples
kmaLifeIndex function import the life weather index data last 2 days. The function also provide simple visualization using plotly.
1 2 | kmaLifeIndex(key, localeCode = NULL, localeName = NULL, type,
slow = T, viz = F, verbose = F)
|
key |
character value. API key issued from <www.data.go.kr>. no default. |
localeCode |
numeric value. SiGunGu code which means legal area. one of localeCode or localeName should be inserted. |
localeName |
character value. SiGunGu name wich means legal area. one of localeCode or localeName should be inserted. It should be Korean. |
type |
character value. decide the type of index. it should be one of "fp", "st", "hi", "di", "ui", "fb", "ap", "sh" or "possible". see details. |
slow |
logical value. if TRUE, give sleep inbetween importing. default is TRUE. |
viz |
logical value. if TRUE, provide simple 2d visualization result. x: date, y: mean index. |
verbose |
logical value. if TRUE, provide process bar. Default value set as false. |
kmaLifeIndex function import eight index value which calculated by Korea Meteorological Administration and related to public's life.
Explanation about "type" as follow.
"fp" = Food poison index. It is povided from Jan to Dec.
"st" = Sensory temperature index. It is povided from Nov to Mar.
"hi" = Heat index. It is povided from Jun to Sep.
"di" = Discomport index. It is povided from Jun to Sep.
"ui" = Ultraviolet index. It is povided from Mar to Nov.
"fb" = Freezing burst index. It is povided from Dec to Feb.
"ap" = Atmospheric dispersion index. It is povided from Nov to May.
"sh" = Sensory heat index. It is povided from May to Sep.
"possible" = All index which affordable now.
See more details about each index from <http://www.weather.go.kr/weather/lifenindustry/life_jisu.jsp#>
Importing data from KMA is so unstable that it is recommended to checking error urls in result.
data.frame and visualization.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.