readnames: readnames

Description Usage Arguments Value Examples

View source: R/readnames.R

Description

Takes in a datafile of names of Williams college graduates, and then returns a dataset of the first name, last name, what level of honors, the major. As well this function tests the last name of each person to check if the person is of Jewish descent or not.

Usage

1
readnames(datafile, year)

Arguments

datafile

the textfile that contains a list of the information of the the students in that year

year

takes in the graduation year of the year of students

Value

a matrix of the combined years with the data extracted from each person

a dataframe of the datafile in a formatted way

Examples

1
year2014 <- readnames("~/names/inst/extdata/names2014.txt", "2014")

jian13579/names documentation built on May 19, 2019, 9:29 a.m.