generateCharacters: Generate Character Names By Gender

Description Usage Arguments Value Examples

Description

This function generates character first names by gender. It requires the randomNames package.

Usage

1
2
3
generateCharacters(charnames = c("cFemName", "cMaleName", "cFriendName",
  "cPetName"), chargenders = c("F", "M", "F", "M"), whichnames = "first",
  writefile = FALSE, outfilename = "aNames.txt")

Arguments

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

Value

This function returns the value of the file that it will write.

Examples

1

ecology-rocks/grammaR documentation built on May 15, 2019, 7:58 p.m.