| Type: | Package |
| Title: | Realistic Fake Data Generator for the Philippines |
| Version: | 0.1.0 |
| 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. |
| License: | MIT + file LICENSE |
| URL: | https://github.com/yng-me/fkr |
| BugReports: | https://github.com/yng-me/fkr/issues |
| Encoding: | UTF-8 |
| Depends: | R (≥ 3.5.0) |
| Imports: | stats, phscs, psgc |
| Suggests: | curl, knitr, rmarkdown, testthat (≥ 3.0.0) |
| VignetteBuilder: | knitr |
| Config/testthat/edition: | 3 |
| RoxygenNote: | 7.3.3 |
| NeedsCompilation: | no |
| Packaged: | 2026-10-13 16:21:36 UTC; bhasabdulsamad |
| Author: | Bhas Abdulsamad |
| Maintainer: | Bhas Abdulsamad <aeabdulsamad@gmail.com> |
| Repository: | CRAN |
| Date/Publication: | 2026-10-22 10:40:07 UTC |
fkr: Realistic Fake Data Generator for the Philippines
Description
fkr generates realistic, locale-aware synthetic data for the
Philippines: personal data (names, sex, civil status, ages, birthdays,
contact details, addresses, government-ID-style numbers) and business
data (company names, industries, job titles, departments, products,
prices, and permit numbers).
Conventions
Every generator's first argument is
n, the number of values to draw.Generators sample with replacement, so duplicate values are possible and expected, just as they would be in a real population sample.
Use
fkr_seed()before a sequence of calls to make them reproducible.Restriction arguments (e.g.
sex,region) are validated against a fixed, documented set of categories and raise an informative error (listing the valid choices) when given anything else.Multi-field results (e.g.
fkr_address()) are returned as adata.framewith one row per generated record, never as nested lists, so results compose directly withcbind()/dplyr::bind_cols().
Important disclaimer
Every value produced by this package – including values formatted to resemble government identifiers (SSS, PhilHealth, Pag-IBIG, TIN, PhilSys) – is drawn uniformly at random purely for software testing, prototyping, and teaching. These values are synthetic: they are not derived from, do not belong to, and will not validate against any real individual, business, or government record.
Author(s)
Maintainer: Bhas Abdulsamad aeabdulsamad@gmail.com (ORCID) [copyright holder]
See Also
Useful links:
Generate a complete fake dataset
Description
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.
Usage
fkr(n, specs)
Arguments
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
|
Value
A data.frame with n rows and one column per (flattened)
spec, in the order given in specs.
Age/birthday consistency
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.
Examples
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))
}
))
Generate complete, internally-consistent Philippine addresses
Description
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.
Usage
fkr_address(n, region = NULL)
Arguments
n |
Number of addresses to generate. A single non-negative whole number. |
region |
Optional region name to restrict the draw to. |
Value
A data.frame with n rows and character columns street,
barangay, city, province, region, zip.
Examples
fkr_address(5)
Generate ages
Description
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.
Usage
fkr_age(n, age_range = 0:130, bias = -0.05)
Arguments
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 |
Value
An integer vector of length n.
Examples
fkr_age(5)
fkr_age(5, age_range = 18:65, bias = 0)
Generate barangay names
Description
Draws from a curated list of barangay names that recur across many Philippine cities and municipalities (e.g. "Poblacion", "San Isidro").
Usage
fkr_barangay(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_barangay(5)
Generate binary (0/1) values
Description
Generate binary (0/1) values
Usage
fkr_binary(n, values = c(0L, 1L), prob = 0.5)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
values |
The two values to draw from, as |
prob |
Probability of drawing |
Value
A vector of length n, with the same type as values.
Examples
fkr_binary(5)
fkr_binary(5, values = c("No", "Yes"), prob = 0.8)
Generate birthdates
Description
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.
Usage
fkr_birthday(n, ..., age = NULL, ref_date = Sys.Date())
Arguments
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 |
Value
A Date vector of length n.
Examples
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`
Generate birthdates as separate year/month/day components
Description
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.
Usage
fkr_birthday_split(n, ..., age = NULL, ref_date = Sys.Date())
Arguments
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 |
Value
A data.frame with n rows and character columns year
("YYYY"), month ("MM"), and day ("DD").
Examples
fkr_birthday_split(5)
Generate boolean values
Description
Generate boolean values
Usage
fkr_boolean(n, prob = 0.5)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
prob |
Probability of drawing |
Value
A logical vector of length n.
Examples
fkr_boolean(5)
fkr_boolean(5, prob = 0.9)
Generate business/mayor's permit-style numbers
Description
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.
Usage
fkr_business_permit_number(n, year = as.integer(format(Sys.Date(), "%Y")))
Arguments
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. |
Value
A character vector of length n.
Examples
fkr_business_permit_number(5)
fkr_business_permit_number(5, year = 2023)
Generate Philippine cities/municipalities
Description
Generate Philippine cities/municipalities
Usage
fkr_city(n, province = NULL, region = NULL)
Arguments
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. |
Value
A character vector of length n.
Examples
fkr_city(5)
fkr_city(5, province = "Cebu")
Generate civil status
Description
Draws from the civil status categories used on Philippine government and civil registry forms.
Usage
fkr_civil_status(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n, one of "Single", "Married",
"Widowed", "Separated", or "Annulled".
Examples
fkr_civil_status(5)
Generate company names
Description
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.").
Usage
fkr_company(n)
Arguments
n |
Number of company names to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_company(5)
Generate company suffixes
Description
Generate company suffixes
Usage
fkr_company_suffix(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n (e.g. "Inc.", "Corp.", "OPC").
Examples
fkr_company_suffix(5)
Generate Philippine latitude/longitude coordinates
Description
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.
Usage
fkr_coordinates(n, region = NULL, precision = 10)
Arguments
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 |
Value
A data.frame with n rows and numeric columns latitude
and longitude, each rounded to precision decimal places.
Examples
fkr_coordinates(5)
fkr_coordinates(5, region = "National Capital Region (NCR)")
Generate company department names
Description
Generate company department names
Usage
fkr_department(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_department(5)
Generate email addresses
Description
Builds realistic email addresses from (optionally supplied) first and last names, using the mix of free email providers most commonly seen in the Philippines.
Usage
fkr_email(n, first_name = NULL, last_name = NULL, domain = NULL)
Arguments
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.
|
Value
A character vector of length n.
Examples
fkr_email(5)
fkr_email(3, first_name = "Juan", last_name = "Dela Cruz")
Generate a factor variable with value labels and an optional variable label
Description
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).
Usage
fkr_factor(n, values, labels = NULL, label = NULL, prob = NULL)
Arguments
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 |
Value
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.
Examples
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))
Generate Filipino first names
Description
Draws n given names from a lookup of ~700 male and ~760 female
Filipino first names, optionally restricted by sex.
Usage
fkr_first_name(n, sex = c("any", "male", "female"))
Arguments
n |
Number of names to generate. A single non-negative whole number. |
sex |
Restrict the draw to |
Value
A character vector of length n.
Examples
fkr_first_name(5)
fkr_first_name(5, sex = "female")
Generate full Filipino names
Description
Combines fkr_first_name() and fkr_last_name(), optionally with a
middle initial, in the common Filipino "First Middle. Last" convention.
Usage
fkr_full_name(n, sex = c("any", "male", "female"), middle_initial = FALSE)
Arguments
n |
Number of names to generate. A single non-negative whole number. |
sex |
Restrict the given name to |
middle_initial |
If |
Value
A character vector of length n.
Examples
fkr_full_name(5)
fkr_full_name(5, sex = "male", middle_initial = TRUE)
Generate industry names
Description
Draws from industries prominent in the Philippine economy (e.g. BPO, agriculture, remittance services).
Usage
fkr_industry(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_industry(5)
Generate whole numbers
Description
Draws integers uniformly at random between min and max, inclusive.
Usage
fkr_int(n, min = 0, max = 100)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
min |
Minimum value (inclusive). Default |
max |
Maximum value (inclusive). Default |
Value
An integer vector of length n.
Examples
fkr_int(5)
fkr_int(5, min = 18, max = 65)
Generate job titles
Description
Generate job titles
Usage
fkr_job_title(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_job_title(5)
Generate Philippine landline numbers
Description
Draws landline numbers using real area codes for Metro Manila and a curated set of major provincial cities.
Usage
fkr_landline_number(n, area_code = NULL)
Arguments
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 |
Value
A character vector of length n, formatted as
"(area code) subscriber number", e.g. "(02) 8123 4567" or
"(032) 234 5678".
Examples
fkr_landline_number(5)
fkr_landline_number(3, area_code = "Cebu")
Generate Filipino last names (surnames)
Description
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.
Usage
fkr_last_name(n, weighted = TRUE)
Arguments
n |
Number of surnames to generate. A single non-negative whole number. |
weighted |
If |
Value
A character vector of length n.
Examples
fkr_last_name(5)
fkr_last_name(5, weighted = FALSE)
Generate Philippine mobile numbers
Description
Draws mobile numbers using real network prefixes (Smart/TNT, Globe/TM, or DITO).
Usage
fkr_mobile_number(
n,
network = c("any", "smart", "globe", "dito"),
format = c("local", "international")
)
Arguments
n |
Number of mobile numbers to generate. A single non-negative whole number. |
network |
Restrict the draw to |
format |
|
Value
A character vector of length n.
Examples
fkr_mobile_number(5)
fkr_mobile_number(5, network = "globe", format = "international")
Generate multiple-response (select-all-that-apply) values
Description
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.
Usage
fkr_multiple_response(n, values, multiple = TRUE, sep = "")
Arguments
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 |
Details
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.
Value
A character vector of length n.
Examples
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)
Generate numbers
Description
Draws numbers uniformly at random between min and max.
Usage
fkr_num(n, min = 0, max = 1, decimals = 2)
Arguments
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 |
Value
A numeric vector of length n.
Examples
fkr_num(5)
fkr_num(5, min = 0, max = 100, decimals = 1)
Generate Pag-IBIG (HDMF) number-style identifiers
Description
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.
Usage
fkr_pagibig_number(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_pagibig_number(5)
Generate PhilHealth number-style identifiers
Description
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.
Usage
fkr_philhealth_number(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_philhealth_number(5)
Generate PhilSys Number (PSN) card-style identifiers
Description
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.
Usage
fkr_philsys_number(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_philsys_number(5)
Generate prices in Philippine pesos
Description
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.
Usage
fkr_price(n, min = 10, max = 10000, format = c("currency", "numeric"))
Arguments
n |
Number of values to generate. A single non-negative whole number. |
min |
Minimum price. Default |
max |
Maximum price. Default |
format |
|
Value
A character vector (if format = "currency") or numeric
vector (if format = "numeric") of length n.
Examples
fkr_price(5)
fkr_price(5, min = 100, max = 500, format = "numeric")
Generate product names
Description
Draws from a curated list of products typical of Philippine retail and sari-sari (small variety) stores.
Usage
fkr_product(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_product(5)
Generate Philippine provinces
Description
Generate Philippine provinces
Usage
fkr_province(n, region = NULL)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
region |
Optional region name to restrict the draw to (one of
|
Value
A character vector of length n.
Examples
fkr_province(5)
fkr_province(5, region = "Region VII (Central Visayas)")
Generate Philippine Standard Geographic Code (PSGC) codes
Description
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.
Usage
fkr_psgc_code(
n,
level = c("city", "region", "province", "municipality", "barangay"),
region = NULL,
province = NULL,
city = NULL
)
Arguments
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 |
Details
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.
Value
A character vector of length n of 9- or 10-digit PSGC codes.
Examples
fkr_psgc_code(5)
fkr_psgc_code(5, level = "region")
fkr_psgc_code(5, level = "barangay", city = "Davao City")
Generate PSIC-classified industries
Description
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.
Usage
fkr_psic_industry(
n,
level = c("divisions", "sections", "groups", "classes", "sub-classes"),
section = NULL
)
Arguments
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.
|
Details
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.
Value
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).
Examples
fkr_psic_industry(5)
fkr_psic_industry(5, level = "sections")
fkr_psic_industry(5, section = "Manufacturing")
Generate PSOC-classified occupations
Description
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.
Usage
fkr_psoc_occupation(
n,
level = c("unit", "minor", "sub-major", "major"),
major_group = NULL
)
Arguments
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. |
Details
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.
Value
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).
Examples
fkr_psoc_occupation(5)
fkr_psoc_occupation(5, level = "major")
fkr_psoc_occupation(5, major_group = "Professionals")
Generate Philippine regions
Description
Generate Philippine regions
Usage
fkr_region(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n, drawn from the Philippines'
17 administrative regions.
Examples
fkr_region(5)
Seed fkr's random number generation
Description
A thin, self-documenting wrapper around set.seed() so a whole
sequence of fkr_*() calls can be made reproducible.
Usage
fkr_seed(seed)
Arguments
seed |
A single whole number. |
Value
NULL, invisibly. Called for its side effect.
Examples
fkr_seed(123)
fkr_first_name(3)
Generate biological sex
Description
Generate biological sex
Usage
fkr_sex(n, levels = c("Male", "Female"))
Arguments
n |
Number of values to generate. A single non-negative whole number. |
levels |
Labels to use for the two sexes, as
|
Value
A character vector of length n.
Examples
fkr_sex(5)
Generate SSS number-style identifiers
Description
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.
Usage
fkr_sss_number(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_sss_number(5)
Generate street addresses
Description
Generates a house/unit number followed by a common Philippine street
name and street type (e.g. "482 Mabini Street").
Usage
fkr_street_address(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_street_address(5)
Generate TIN-style identifiers
Description
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.
Usage
fkr_tin_number(n)
Arguments
n |
Number of values to generate. A single non-negative whole number. |
Value
A character vector of length n.
Examples
fkr_tin_number(5)
Generate UUIDs
Description
Generates random (version 4, RFC 4122) universally unique identifiers.
Usage
fkr_uuid(n, version = 4)
Arguments
n |
Number of UUIDs to generate. A single non-negative whole number. |
version |
UUID version to generate. Only |
Value
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).
Examples
fkr_uuid(5)
Generate Philippine ZIP codes
Description
Generate Philippine ZIP codes
Usage
fkr_zip_code(n, province = NULL, city = NULL)
Arguments
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. |
Value
A character vector of length n of 4-digit ZIP codes.
Examples
fkr_zip_code(5)
fkr_zip_code(5, city = "Davao City")