random.names: Generates random sample of nationally representative surnames

View source: R/random.names.r

random.namesR Documentation

Generates random sample of nationally representative surnames

Description

Generates a random sample of surnames of any length. Surnames and probabilities from Census Bureau, see <https://www.census.gov/topics/population/genealogy/data/2010_surnames.html>. Used to illustrate random sampling methods.

Usage

random.names(n)

Arguments

n

The number of random surnames to be generated

Value

A vector of surnames

RCPA3 Package Tutorial Videos

* [Complete Playlist of RCPA3 Package Tutorial Videos](https://www.youtube.com/playlist?list=PL3jY4WDTUxoNqrxSSQH4q7XPLPYipeNCu), includes video for this function and many more.

Examples

   library(RCPA3)
   
   random.names(10)

RCPA3 documentation built on May 29, 2024, 12:19 p.m.

Related to random.names in RCPA3...