molitDwelling: Ministry of Land Infrastructure and Transport, real estate...

Description Usage Arguments Details Value Examples

View source: R/molitDwelling.R

Description

molitDwelling function import the actual transition data of house. The function also provide simple visualization using plotly.

Usage

1
2
molitDwelling(key, year, month = NULL, localeCode = NULL,
  localeName = NULL, houseType, tradeType, slow = F, viz = F)

Arguments

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.

Details

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.

Value

two data.frame for meta-data and imported data. two vectors for error urls and all urls. visualization.

Examples

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)

lawine90/datagokR documentation built on Sept. 24, 2020, 9:42 p.m.