summaryStatistic: Summary Statistic

Description Usage Arguments Value

Description

Uses the data from the readNameData() function to compute relavent summary statistics

Usage

1

Arguments

type

The type of statistics to be computed. The options are "popular", "most popular", "name length", "name length plot", and "least popular."

Value

If the user codes popular, the function returns a dataframe with the six most popular names over the past 13 years. If the user codes most popular, the function returns a dataframe reporting all names that have been in the top six over the past 13 years, and how many times each name has been in the top six. If the user codes name length, the function returns a dataframe reporting the average first name length of the graduating class for each year. If the user codes name length plot, the function reports name length data in the form of a scatterplot. If the user codes least popular, the function returns a random sample of first names that have only occurred at Williams one time since 2004.


jmoss13148/wgd documentation built on May 19, 2019, 1:54 p.m.