This function is to parse Korea address string as per administrative areas.

KAParse(dfDirtyJuso, columnName)

Arguments

dfDirtyJuso

Input data frame

columnName

column name of input data frame, which will be parsed

Value

data frame is reaturned and it have administrative areas as new columns

Details

KAParse read only the column which is pointed by columnName parameter, and add new columns for administrative areas such as SiDoMyeong, SiGunGuMyeong. If we can't find appropriated administrative area, we mark 'x' to its corresponding column.

Examples

# Please visit below to see the correct example. # https://github.com/skysign/KoreaAddressAPI/blob/master/examples/KRA_example.rmd # # To pass build without error, we should not describe anything in Korean, here. library(KoreaAddressAPI) dirtyJuso = c('', '') dfDirtyJuso = data.frame(dirtyJuso) dfDirtyJuso
#> dirtyJuso #> 1 #> 2
dfCleaned = KAParse(dfDirtyJuso, 'dirtyJuso') dfCleaned
#> dirtyJuso SiDoMyeong SiGunGuMyeong BeopJeongEupMyeonDongMyeong JiBeonBonBeon #> 1 x x x x #> 2 x x x x #> JiBeonBuBeon #> 1 x #> 2 x