Description Usage Arguments Details Value Examples
View source: R/molitDwelling.R
molitDwelling function import the actual transition data of house. The function also provide simple visualization using plotly.
1 2 | molitDwelling(key, year, month = NULL, localeCode = NULL,
localeName = NULL, houseType, tradeType, slow = F, viz = F)
|
key |
character value. API key issued from <www.data.go.kr> |
year |
numeric value. the year of real trade |
month |
numeric value. the month of real trade. default is NULL |
localeCode |
numeric value. SiGunGu code which means legal area. |
localeName |
character value. SiGunGu name wich means legal area. It should be Korean. |
houseType |
character value. decide the type of house. it should be one of "apart", "multi", or "detached". |
tradeType |
character value. decide the type of trade. it should be one of "trade" or "rent". |
slow |
logical value. if TRUE, give sleep inbetween importing. default is FALSE |
viz |
logical value. if TRUE, provide simple 3d visualization result. x: date, y: price, z: the number of contract. |
If month value is NULL, all data of the year will imported.
Between localeCode and localeName, one of these parameters should be inserted.
The localeCode parameter recommended five numeric value.
houseType parameter means the type of house.
"apart" means Apartment, "multi" means Multiplex house, and "detached" means detached house.
two data.frame for meta-data and imported data. two vectors for error urls and all urls. visualization.
1 2 3 4 5 6 7 | # example 1 searching by localeCode.
data <- molitDwelling(key = "my_key", year = 2018, month = 1, localeCode = 11110,
houseType = "apart", tradeType = "trade", slow = T, viz = F)
# example 2 searching by localeName
data <- molitDwelling(key = "my_key", year = 2018, month = 1:6, localeName = enc2utf8("서울"),
houseType = "apart", tradeType = "rent", slow = F, viz = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.