KAParse.Rd
This function is to parse Korea address string as per administrative areas.
KAParse(dfDirtyJuso, columnName)
dfDirtyJuso | Input data frame |
---|---|
columnName | column name of input data frame, which will be parsed |
data frame is reaturned and it have administrative areas as new columns
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.
# 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 #> 2dfCleaned = KAParse(dfDirtyJuso, 'dirtyJuso') dfCleaned#> dirtyJuso SiDoMyeong SiGunGuMyeong BeopJeongEupMyeonDongMyeong JiBeonBonBeon #> 1 x x x x #> 2 x x x x #> JiBeonBuBeon #> 1 x #> 2 x