x = c('Alex', 'Darrell', 'Kale', 'Lee', 'Robin', 'Terry', 'John', 'Tom')
y = c(rep('male',length(x)))
givenNamesDB = findGivenNames(x)
probs = seq(from = 0.5, to = 0.9, by = 0.05)
counts = c(1, 10)
genderizeTrain(x = x, y = y, givenNamesDB = givenNamesDB,
probs = probs, counts = counts)
Run the code above in your browser using DataLab