random.names {RCPA3} | R 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)
[Package RCPA3 version 1.2.1 Index]