nameStats: get stats about a first names main function of the package

Description Usage Arguments Value Examples

Description

get stats about a first names main function of the package

Usage

1
nameStats(firstName, gender = TRUE, region = TRUE, ageRange = TRUE)

Arguments

firstName

a vector of first names, the case doesn't matter

gender

(optional) a vector of genders, TRUE means all genders

region

(optional) a vector of regions, TRUE means all regions

ageRange

(optional) a vector of age ranges, TRUE means all age ranges

ignore.case

(optional) whether to ignore the case

Value

data frame with statistics about the first names given

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
nameStats("Bart")

nameStats("Tintin") # no-one's called that way in 2013

nameStats(firstName = c("Alex", "Bart", "Clara"))

nameStats(firstName = c("Alex", "Bart", "Clara"),
          gender = c("male", "male", "female"))

nameStats(firstName = c("Alex", "Bart", "Clara"),
          region = c("bruxelles", "bruxelles", "flandre"))

nameStats(firstName = c("Alex", "Bart", "Clara"),
          ageRange = c("18to64", "18to64", "18to64"))

 
## End(Not run))

nassimhaddad/firstnamesbe documentation built on May 23, 2019, 12:18 p.m.