Description Usage Arguments Value Examples
This function generates character first names by gender. It requires the randomNames package.
1 2 3 | generateCharacters(charnames = c("cFemName", "cMaleName", "cFriendName",
"cPetName"), chargenders = c("F", "M", "F", "M"), whichnames = "first",
writefile = FALSE, outfilename = "aNames.txt")
|
charnames |
A vector of keys to use for the characters, e.g., cFemName |
chargenders |
A vector of "M" or "F", representing male or female. |
whichnames |
Default is first, set to last or both to change the output string |
writefile |
If set to true, this function will write a file. |
outfilename |
The directory and name of file that we should write if writefile=TRUE |
This function returns the value of the file that it will write.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.