Description Usage Arguments Value Examples
NIK (Nomor Induk Kependudukan) is a unique ID for Indonesia citizens (https://en.wikipedia.org/wiki/Indonesian_identity_card). NIK contains geographic location where the ID card is built, gender and birthdate of the holder.
1 2 3 4 5 6 7 8 9 10 | nik_to_all(nik, select = c("gender", "bd", "city", "prov"),
typec = "default", typep = "default")
nik_to_gender(nik, return = "default")
nik_to_bd(nik)
nik_to_city(nik, type = "default")
nik_to_prov(nik, type = "default")
|
nik |
NIK (KTP ID) |
select |
select ( |
typec |
return format for city ( |
typep |
return format for province ( |
return |
|
type |
return format ( |
nik_to_gender
returns a factor vector.
nik_to_bd
returns a Date vector.
nik_to_city
and nik_to_prov
return a character vector.
nik_to_all
returns a list of those four functions output.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | nik <- "1671065412990099"
nik_to_bd(nik)
nik_to_city(nik)
nik_to_prov(nik)
nik_to_all(nik)
nik_to_all(nik, select=c("gender","bd"))
# using nik_to_all
df <- data.frame(nik = rep("1671065412990099"), 5)
## Not run:
df %>%
mutate(out = map(nik, nik_to_all),
out = map(out, data.frame)) %>%
unnest()
# not using nik_to_all
df %>%
mutate(bd = nik_to_bd(nik),
city = nik_to_bd(city),
prov = nik_to_bd(prov))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.