Learn R Programming

noah

noah (no animals were harmed) generates pseudonyms that are delightful and easy to remember. It creates adorable anonymous animals like the Likable Leech and the Proud Chickadee.

Installation

Noah is not yet on CRAN, but you can install it from Github with:

# install.packages("remotes")
remotes::install_github("teebusch/noah")

Usage

Generate pseudonyms

Use pseudonymize() to generate a unique pseudonym for every unique element / row in a vector or data frame. pseudonymize() accepts multiple vectors and data frames as arguments, and will pseudonymize them row by row.

library(noah)

pseudonymize(1:9)
#> [1] "Impartial Rat"       "Superficial Bird"    "Royal Orca"         
#> [4] "Earsplitting Python" "Fascinated Donkey"   "Defeated Trout"     
#> [7] "Encouraging Stoat"   "Null Grouse"         "Axiomatic Octopus"

pseudonymize(
  c("

Copy Link

Version

Install

install.packages('noah')

Monthly Downloads

197

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Tobias Busch

Last Published

January 18th, 2021

Functions in noah (0.1.0)

Ark

A pseudonym archive
random_permutation

Generate a lazy non-repeating random number generator
pseudonymize

Create unique pseudonyms
add_pseudonyms

Add column with pseudonyms to a data frame
op-null-default

Coalescing infix OR operator
ind2subs

Convert linear index to matrix subscripts
clean_name_parts

Cleans name parts for use by an Ark.
%>%

Pipe operator
get_n_remaining

Get the number of unused elements left in a random permutation
remove_remaining

Remove numbers from a lazy non-repeating random number generator
subs2ind

Convert matrix subscripts to linear index