| Title: | Realistic Fake Data Generator for the Philippines |
|---|---|
| Description: | Generates realistic, locale-aware synthetic data for the Philippines, covering both personal data (names, ages, birthdays, contact details, addresses, government-ID-style numbers) and business data (company names, industries, job titles, products, prices, and permit numbers). Every value, including anything formatted to resemble a government identifier, is drawn uniformly at random for software testing, prototyping, and teaching, and does not correspond to any real person, business, or record. |
| Authors: | Bhas Abdulsamad [aut, cre, cph] (ORCID: <https://orcid.org/0009-0002-5891-8124>) |
| Maintainer: | Bhas Abdulsamad <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-10-22 15:35:13 UTC |
| Source: | https://github.com/cran/fkr |
A dataset-level abstraction over the individual fkr_*()
generators: describe each column with a specs list and get back a
single, ready-to-use data.frame with n rows.
fkr(n, specs)fkr(n, specs)
n |
Number of rows to generate. A single non-negative whole number. |
specs |
A named list describing each column. Names become column names and must be unique and non-empty. Each element can be:
When a spec (whether a function's result or a literal value) is a
|
A data.frame with n rows and one column per (flattened)
spec, in the order given in specs.
If fkr_age() and either fkr_birthday() or
fkr_birthday_split() both appear unwrapped (i.e. passed as the
bare function, not e.g. function(n) fkr_age(n, age_range = 18:65))
among specs, fkr() draws the age once and feeds it to the
birthday spec(s), so the generated age and the age implied by the
birthdate always agree – instead of each independently drawing its
own random age. Wrap either in an anonymous function (even a trivial
function(n) fkr_age(n)) to opt out and get independent draws.
fkr_seed(1) fkr(5, list( first_name = fkr_first_name, last_name = fkr_last_name, sex = fkr_sex, age = fkr_age, date_of_birth = fkr_birthday, address = fkr_address, coordinates = fkr_coordinates )) # A column that depends on one generated earlier in `specs`: fkr(5, list( age = fkr_age, civil_status = function(n, data) { ifelse(data$age < 18, "Single", fkr_civil_status(n)) } ))fkr_seed(1) fkr(5, list( first_name = fkr_first_name, last_name = fkr_last_name, sex = fkr_sex, age = fkr_age, date_of_birth = fkr_birthday, address = fkr_address, coordinates = fkr_coordinates )) # A column that depends on one generated earlier in `specs`: fkr(5, list( age = fkr_age, civil_status = function(n, data) { ifelse(data$age < 18, "Single", fkr_civil_status(n)) } ))
Each generated row shares a single, real region/province/city/ZIP
combination, so unlike calling the individual fkr_* geo functions
separately, the fields are always geographically consistent with each
other.
fkr_address(n, region = NULL)fkr_address(n, region = NULL)
n |
Number of addresses to generate. A single non-negative whole number. |
region |
Optional region name to restrict the draw to. |
A data.frame with n rows and character columns street,
barangay, city, province, region, zip.
fkr_address(5)fkr_address(5)
Draws n ages from age_range, weighted by an exponential decay so
that, like a real population pyramid, younger ages are more common than
older ones by default.
fkr_age(n, age_range = 0:130, bias = -0.05)fkr_age(n, age_range = 0:130, bias = -0.05)
n |
Number of ages to generate. A single non-negative whole number. |
age_range |
Integer vector of candidate ages. Default |
bias |
Exponential decay rate applied over |
An integer vector of length n.
fkr_age(5) fkr_age(5, age_range = 18:65, bias = 0)fkr_age(5) fkr_age(5, age_range = 18:65, bias = 0)
Draws from a curated list of barangay names that recur across many Philippine cities and municipalities (e.g. "Poblacion", "San Isidro").
fkr_barangay(n)fkr_barangay(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_barangay(5)fkr_barangay(5)
Generate binary (0/1) values
fkr_binary(n, values = c(0L, 1L), prob = 0.5)fkr_binary(n, values = c(0L, 1L), prob = 0.5)
n |
Number of values to generate. A single non-negative whole number. |
values |
The two values to draw from, as |
prob |
Probability of drawing |
A vector of length n, with the same type as values.
fkr_binary(5) fkr_binary(5, values = c("No", "Yes"), prob = 0.8)fkr_binary(5) fkr_binary(5, values = c("No", "Yes"), prob = 0.8)
Generates a birthdate for each of n simulated people by first drawing
an age with fkr_age(), then drawing a uniformly random date within
that age's exact 1-year window relative to ref_date.
fkr_birthday(n, ..., age = NULL, ref_date = Sys.Date())fkr_birthday(n, ..., age = NULL, ref_date = Sys.Date())
n |
Number of birthdates to generate. A single non-negative whole number. |
... |
Passed on to |
age |
Optional precomputed ages (e.g. from a prior |
ref_date |
Reference "today" that ages are computed against.
Default |
A Date vector of length n.
fkr_birthday(5) fkr_birthday(5, age_range = 18:65) ages <- fkr_age(5, age_range = 18:65) fkr_birthday(5, age = ages) # birthdates consistent with `ages`fkr_birthday(5) fkr_birthday(5, age_range = 18:65) ages <- fkr_age(5, age_range = 18:65) fkr_birthday(5, age = ages) # birthdates consistent with `ages`
A convenience wrapper around fkr_birthday() that splits each
generated date into its year, month, and day parts – handy for forms
that collect date of birth as three separate fields.
fkr_birthday_split(n, ..., age = NULL, ref_date = Sys.Date())fkr_birthday_split(n, ..., age = NULL, ref_date = Sys.Date())
n |
Number of birthdates to generate. A single non-negative whole number. |
... |
Passed on to |
age |
Optional precomputed ages to generate birthdates for; see
|
ref_date |
Reference "today" that ages are computed against.
Default |
A data.frame with n rows and character columns year
("YYYY"), month ("MM"), and day ("DD").
fkr_birthday_split(5)fkr_birthday_split(5)
Generate boolean values
fkr_boolean(n, prob = 0.5)fkr_boolean(n, prob = 0.5)
n |
Number of values to generate. A single non-negative whole number. |
prob |
Probability of drawing |
A logical vector of length n.
fkr_boolean(5) fkr_boolean(5, prob = 0.9)fkr_boolean(5) fkr_boolean(5, prob = 0.9)
Produces values matching the BP-YYYY-NNNNNN format commonly used by
local government Business Permits and Licensing Offices (BPLOs).
The digits are uniformly random and do not correspond to any real
business; see the package-level disclaimer in ?fkr.
fkr_business_permit_number(n, year = as.integer(format(Sys.Date(), "%Y")))fkr_business_permit_number(n, year = as.integer(format(Sys.Date(), "%Y")))
n |
Number of values to generate. A single non-negative whole number. |
year |
Permit year. Default is the current year. Must be a single 4-digit whole number. |
A character vector of length n.
fkr_business_permit_number(5) fkr_business_permit_number(5, year = 2023)fkr_business_permit_number(5) fkr_business_permit_number(5, year = 2023)
Generate Philippine cities/municipalities
fkr_city(n, province = NULL, region = NULL)fkr_city(n, province = NULL, region = NULL)
n |
Number of values to generate. A single non-negative whole number. |
province |
Optional province name to restrict the draw to. |
region |
Optional region name to restrict the draw to. |
A character vector of length n.
fkr_city(5) fkr_city(5, province = "Cebu")fkr_city(5) fkr_city(5, province = "Cebu")
Draws from the civil status categories used on Philippine government and civil registry forms.
fkr_civil_status(n)fkr_civil_status(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n, one of "Single", "Married",
"Widowed", "Separated", or "Annulled".
fkr_civil_status(5)fkr_civil_status(5)
Builds realistic Philippine business names by combining one or two
surnames, a business-type word, and a corporate suffix (e.g.
"Dela Cruz Trading Corp.", "Santos & Reyes Enterprises, Inc.").
fkr_company(n)fkr_company(n)
n |
Number of company names to generate. A single non-negative whole number. |
A character vector of length n.
fkr_company(5)fkr_company(5)
Generate company suffixes
fkr_company_suffix(n)fkr_company_suffix(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n (e.g. "Inc.", "Corp.", "OPC").
fkr_company_suffix(5)fkr_company_suffix(5)
Draws a point uniformly at random within the decimal-degree bounding
box of the Philippines, or of a single region if region is given.
Bounding boxes are region-level approximations (not survey-grade), so
a point is guaranteed to fall in roughly the right part of the
archipelago, not necessarily on land.
fkr_coordinates(n, region = NULL, precision = 10)fkr_coordinates(n, region = NULL, precision = 10)
n |
Number of coordinate pairs to generate. A single non-negative whole number. |
region |
Optional region name to restrict the draw to (one of
|
precision |
Number of decimal places to round |
A data.frame with n rows and numeric columns latitude
and longitude, each rounded to precision decimal places.
fkr_coordinates(5) fkr_coordinates(5, region = "National Capital Region (NCR)")fkr_coordinates(5) fkr_coordinates(5, region = "National Capital Region (NCR)")
Generate company department names
fkr_department(n)fkr_department(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_department(5)fkr_department(5)
Builds realistic email addresses from (optionally supplied) first and last names, using the mix of free email providers most commonly seen in the Philippines.
fkr_email(n, first_name = NULL, last_name = NULL, domain = NULL)fkr_email(n, first_name = NULL, last_name = NULL, domain = NULL)
n |
Number of email addresses to generate. A single non-negative whole number. |
first_name |
Optional character vector of first names to build
addresses from. Must have length 1 or length |
last_name |
Optional character vector of last names, same
recycling rule as |
domain |
Optional character vector of email domains (e.g.
|
A character vector of length n.
fkr_email(5) fkr_email(3, first_name = "Juan", last_name = "Dela Cruz")fkr_email(5) fkr_email(3, first_name = "Juan", last_name = "Dela Cruz")
Draws from values (the underlying, often numeric, codes) and
returns a factor() over them, optionally relabeled with
human-readable labels (the value set) and tagged with a label (a
variable-level description), mirroring the "variable label" /
"value labels" distinction common in survey/statistical data (e.g.
SPSS, Stata, haven).
fkr_factor(n, values, labels = NULL, label = NULL, prob = NULL)fkr_factor(n, values, labels = NULL, label = NULL, prob = NULL)
n |
Number of values to generate. A single non-negative whole number. |
values |
A non-empty atomic vector of underlying codes/levels,
with no |
labels |
Optional character vector of display labels, the same
length as |
label |
Optional single string describing the variable itself
(e.g. |
prob |
Optional numeric vector of sampling weights, the same
length as |
A factor of length n with levels values (coerced to
character, per factor()'s usual behavior) and, if given, an
attr(x, "label") variable description. Note that
as.integer() on the result gives each value's position in
values, not the original code – use levels() or as.character()
to recover the original values.
fkr_factor(5, values = c(1, 2), labels = c("Male", "Female")) fkr_factor(5, values = c(1, 2), labels = c("Male", "Female"), label = "Respondent's biological sex" ) fkr_factor(5, values = c(1, 2, 3), prob = c(0.7, 0.2, 0.1))fkr_factor(5, values = c(1, 2), labels = c("Male", "Female")) fkr_factor(5, values = c(1, 2), labels = c("Male", "Female"), label = "Respondent's biological sex" ) fkr_factor(5, values = c(1, 2, 3), prob = c(0.7, 0.2, 0.1))
Draws n given names from a lookup of ~700 male and ~760 female
Filipino first names, optionally restricted by sex.
fkr_first_name(n, sex = c("any", "male", "female"))fkr_first_name(n, sex = c("any", "male", "female"))
n |
Number of names to generate. A single non-negative whole number. |
sex |
Restrict the draw to |
A character vector of length n.
fkr_first_name(5) fkr_first_name(5, sex = "female")fkr_first_name(5) fkr_first_name(5, sex = "female")
Combines fkr_first_name() and fkr_last_name(), optionally with a
middle initial, in the common Filipino "First Middle. Last" convention.
fkr_full_name(n, sex = c("any", "male", "female"), middle_initial = FALSE)fkr_full_name(n, sex = c("any", "male", "female"), middle_initial = FALSE)
n |
Number of names to generate. A single non-negative whole number. |
sex |
Restrict the given name to |
middle_initial |
If |
A character vector of length n.
fkr_full_name(5) fkr_full_name(5, sex = "male", middle_initial = TRUE)fkr_full_name(5) fkr_full_name(5, sex = "male", middle_initial = TRUE)
Draws from industries prominent in the Philippine economy (e.g. BPO, agriculture, remittance services).
fkr_industry(n)fkr_industry(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_industry(5)fkr_industry(5)
Draws integers uniformly at random between min and max, inclusive.
fkr_int(n, min = 0, max = 100)fkr_int(n, min = 0, max = 100)
n |
Number of values to generate. A single non-negative whole number. |
min |
Minimum value (inclusive). Default |
max |
Maximum value (inclusive). Default |
An integer vector of length n.
fkr_int(5) fkr_int(5, min = 18, max = 65)fkr_int(5) fkr_int(5, min = 18, max = 65)
Generate job titles
fkr_job_title(n)fkr_job_title(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_job_title(5)fkr_job_title(5)
Draws landline numbers using real area codes for Metro Manila and a curated set of major provincial cities.
fkr_landline_number(n, area_code = NULL)fkr_landline_number(n, area_code = NULL)
n |
Number of landline numbers to generate. A single non-negative whole number. |
area_code |
Optional city name to restrict the area code to (one
of |
A character vector of length n, formatted as
"(area code) subscriber number", e.g. "(02) 8123 4567" or
"(032) 234 5678".
fkr_landline_number(5) fkr_landline_number(3, area_code = "Cebu")fkr_landline_number(5) fkr_landline_number(3, area_code = "Cebu")
Draws n surnames from the ~1,000 most common Philippine surnames,
ranked by real-world frequency (Spanish-derived names like
"Dela Cruz", "Garcia", and "Reyes" dominate the Philippine namescape).
By default the draw is weighted by that ranking, so rank-1 surnames
come up far more often than rank-1000 ones, the way they would in an
actual population sample.
fkr_last_name(n, weighted = TRUE)fkr_last_name(n, weighted = TRUE)
n |
Number of surnames to generate. A single non-negative whole number. |
weighted |
If |
A character vector of length n.
fkr_last_name(5) fkr_last_name(5, weighted = FALSE)fkr_last_name(5) fkr_last_name(5, weighted = FALSE)
Draws mobile numbers using real network prefixes (Smart/TNT, Globe/TM, or DITO).
fkr_mobile_number( n, network = c("any", "smart", "globe", "dito"), format = c("local", "international") )fkr_mobile_number( n, network = c("any", "smart", "globe", "dito"), format = c("local", "international") )
n |
Number of mobile numbers to generate. A single non-negative whole number. |
network |
Restrict the draw to |
format |
|
A character vector of length n.
fkr_mobile_number(5) fkr_mobile_number(5, network = "globe", format = "international")fkr_mobile_number(5) fkr_mobile_number(5, network = "globe", format = "international")
Simulates a "select all that apply" survey item: each generated value
is one or more entries from values combined together, e.g. with
values = LETTERS[1:4] a result might be "A", "AC", or "ABCD".
Selected entries always keep their original order from values (so
"AC" can occur but "CA" cannot), and never repeat within a single
generated value.
fkr_multiple_response(n, values, multiple = TRUE, sep = "")fkr_multiple_response(n, values, multiple = TRUE, sep = "")
n |
Number of values to generate. A single non-negative whole number. |
values |
A non-empty vector of candidate entries, with no |
multiple |
If |
sep |
String used to join multiple selected entries together.
Default |
The number of entries selected for each value is drawn uniformly from
1:length(values) (not uniformly over all non-empty subsets), so
picking exactly 1 entry is just as likely as picking all of them.
A character vector of length n.
fkr_multiple_response(5, values = LETTERS[1:4]) fkr_multiple_response(5, values = c("Email", "Phone", "SMS"), sep = ", ") fkr_multiple_response(5, values = LETTERS[1:4], multiple = FALSE)fkr_multiple_response(5, values = LETTERS[1:4]) fkr_multiple_response(5, values = c("Email", "Phone", "SMS"), sep = ", ") fkr_multiple_response(5, values = LETTERS[1:4], multiple = FALSE)
Draws numbers uniformly at random between min and max.
fkr_num(n, min = 0, max = 1, decimals = 2)fkr_num(n, min = 0, max = 1, decimals = 2)
n |
Number of values to generate. A single non-negative whole number. |
min |
Minimum value (inclusive). Default |
max |
Maximum value (inclusive). Default |
decimals |
Number of decimal places to round to. Default |
A numeric vector of length n.
fkr_num(5) fkr_num(5, min = 0, max = 100, decimals = 1)fkr_num(5) fkr_num(5, min = 0, max = 100, decimals = 1)
Produces values matching the NNNN-NNNN-NNNN format used by the Home
Development Mutual Fund (Pag-IBIG Fund). The digits are uniformly
random and do not correspond to any real member; see the
package-level disclaimer in ?fkr.
fkr_pagibig_number(n)fkr_pagibig_number(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_pagibig_number(5)fkr_pagibig_number(5)
Produces values matching the NN-NNNNNNNNN-N format used by the
Philippine Health Insurance Corporation. The digits are uniformly
random and do not correspond to any real member; see the
package-level disclaimer in ?fkr.
fkr_philhealth_number(n)fkr_philhealth_number(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_philhealth_number(5)fkr_philhealth_number(5)
Produces values matching the NNNN-NNNN-NNNN-NNNN format printed on
the Philippine national ID (PhilSys). The digits are uniformly
random and do not correspond to any real registrant; see the
package-level disclaimer in ?fkr.
fkr_philsys_number(n)fkr_philsys_number(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_philsys_number(5)fkr_philsys_number(5)
Draws prices on a log scale between min and max so that, like real
retail pricing, low values are much more common than high ones.
fkr_price(n, min = 10, max = 10000, format = c("currency", "numeric"))fkr_price(n, min = 10, max = 10000, format = c("currency", "numeric"))
n |
Number of values to generate. A single non-negative whole number. |
min |
Minimum price. Default |
max |
Maximum price. Default |
format |
|
A character vector (if format = "currency") or numeric
vector (if format = "numeric") of length n.
fkr_price(5) fkr_price(5, min = 100, max = 500, format = "numeric")fkr_price(5) fkr_price(5, min = 100, max = 500, format = "numeric")
Draws from a curated list of products typical of Philippine retail and sari-sari (small variety) stores.
fkr_product(n)fkr_product(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_product(5)fkr_product(5)
Generate Philippine provinces
fkr_province(n, region = NULL)fkr_province(n, region = NULL)
n |
Number of values to generate. A single non-negative whole number. |
region |
Optional region name to restrict the draw to (one of
|
A character vector of length n.
fkr_province(5) fkr_province(5, region = "Region VII (Central Visayas)")fkr_province(5) fkr_province(5, region = "Region VII (Central Visayas)")
Draws real PSGC codes – the Philippine Statistics Authority's official hierarchical coding system for regions, provinces, cities, municipalities, and barangays – at the requested level, optionally restricted to a specific region/province/city.
fkr_psgc_code( n, level = c("city", "region", "province", "municipality", "barangay"), region = NULL, province = NULL, city = NULL )fkr_psgc_code( n, level = c("city", "region", "province", "municipality", "barangay"), region = NULL, province = NULL, city = NULL )
n |
Number of codes to generate. A single non-negative whole number. |
level |
Geographic level of the code: |
region |
Optional region name to restrict the draw to (see
|
province |
Optional province name to restrict the draw to (see
|
city |
Optional city/municipality name to restrict the draw to
(useful with |
Codes are fetched live via the psgc package (which caches its data locally after the first call) and kept in memory for the rest of the R session, so the first call in a session may require network access.
A character vector of length n of 9- or 10-digit PSGC codes.
fkr_psgc_code(5) fkr_psgc_code(5, level = "region") fkr_psgc_code(5, level = "barangay", city = "Davao City")fkr_psgc_code(5) fkr_psgc_code(5, level = "region") fkr_psgc_code(5, level = "barangay", city = "Davao City")
Draws industry/economic-activity titles from the Philippine Standard
Industrial Classification (PSIC), the Philippine Statistics
Authority's official industry taxonomy (aligned with ISIC Rev. 4),
together with their real classification code. Complements
fkr_industry(), which draws from an informal, uncoded list.
fkr_psic_industry( n, level = c("divisions", "sections", "groups", "classes", "sub-classes"), section = NULL )fkr_psic_industry( n, level = c("divisions", "sections", "groups", "classes", "sub-classes"), section = NULL )
n |
Number of industries to generate. A single non-negative whole number. |
level |
PSIC hierarchy level to draw from: |
section |
Optional section title to restrict the draw to (e.g.
|
Data is fetched live via the phscs package (which caches its data locally after the first call) and kept in memory for the rest of the R session, so the first call in a session may require network access.
A data.frame with n rows and columns title (the
industry/activity title), psic_code (its PSIC code), and
section (its top-level PSIC section title).
fkr_psic_industry(5) fkr_psic_industry(5, level = "sections") fkr_psic_industry(5, section = "Manufacturing")fkr_psic_industry(5) fkr_psic_industry(5, level = "sections") fkr_psic_industry(5, section = "Manufacturing")
Draws occupation titles from the Philippine Standard Occupational Classification (PSOC), the Philippine Statistics Authority's official occupational taxonomy (aligned with ISCO-08), together with their real classification code.
fkr_psoc_occupation( n, level = c("unit", "minor", "sub-major", "major"), major_group = NULL )fkr_psoc_occupation( n, level = c("unit", "minor", "sub-major", "major"), major_group = NULL )
n |
Number of occupations to generate. A single non-negative whole number. |
level |
PSOC hierarchy level to draw from: |
major_group |
Optional major-group title to restrict the draw to
(e.g. |
Data is fetched live via the phscs package (which caches its data locally after the first call) and kept in memory for the rest of the R session, so the first call in a session may require network access.
A data.frame with n rows and columns title (the
occupation/group title), psoc_code (its PSOC code), and
major_group (its top-level PSOC major-group title).
fkr_psoc_occupation(5) fkr_psoc_occupation(5, level = "major") fkr_psoc_occupation(5, major_group = "Professionals")fkr_psoc_occupation(5) fkr_psoc_occupation(5, level = "major") fkr_psoc_occupation(5, major_group = "Professionals")
Generate Philippine regions
fkr_region(n)fkr_region(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n, drawn from the Philippines'
17 administrative regions.
fkr_region(5)fkr_region(5)
A thin, self-documenting wrapper around set.seed() so a whole
sequence of fkr_*() calls can be made reproducible.
fkr_seed(seed)fkr_seed(seed)
seed |
A single whole number. |
NULL, invisibly. Called for its side effect.
fkr_seed(123) fkr_first_name(3)fkr_seed(123) fkr_first_name(3)
Generate biological sex
fkr_sex(n, levels = c("Male", "Female"))fkr_sex(n, levels = c("Male", "Female"))
n |
Number of values to generate. A single non-negative whole number. |
levels |
Labels to use for the two sexes, as
|
A character vector of length n.
fkr_sex(5)fkr_sex(5)
Produces values matching the NN-NNNNNNN-N format used by the
Philippine Social Security System. The digits are uniformly random
and do not correspond to any real SSS member; see the package-level
disclaimer in ?fkr.
fkr_sss_number(n)fkr_sss_number(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_sss_number(5)fkr_sss_number(5)
Generates a house/unit number followed by a common Philippine street
name and street type (e.g. "482 Mabini Street").
fkr_street_address(n)fkr_street_address(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_street_address(5)fkr_street_address(5)
Produces values matching the NNN-NNN-NNN-NNN format used for
Philippine Bureau of Internal Revenue Tax Identification Numbers.
The digits are uniformly random and do not correspond to any real
taxpayer; see the package-level disclaimer in ?fkr.
fkr_tin_number(n)fkr_tin_number(n)
n |
Number of values to generate. A single non-negative whole number. |
A character vector of length n.
fkr_tin_number(5)fkr_tin_number(5)
Generates random (version 4, RFC 4122) universally unique identifiers.
fkr_uuid(n, version = 4)fkr_uuid(n, version = 4)
n |
Number of UUIDs to generate. A single non-negative whole number. |
version |
UUID version to generate. Only |
A character vector of length n, formatted as
"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" (lowercase hex, with the
version nibble fixed to 4 and the variant nibble one of 8, 9,
a, b).
fkr_uuid(5)fkr_uuid(5)
Generate Philippine ZIP codes
fkr_zip_code(n, province = NULL, city = NULL)fkr_zip_code(n, province = NULL, city = NULL)
n |
Number of values to generate. A single non-negative whole number. |
province |
Optional province name to restrict the draw to. |
city |
Optional city/municipality name to restrict the draw to. |
A character vector of length n of 4-digit ZIP codes.
fkr_zip_code(5) fkr_zip_code(5, city = "Davao City")fkr_zip_code(5) fkr_zip_code(5, city = "Davao City")