getHonorName: Get Section Indicated by Latin Honors

Description Usage Arguments Details Value

Description

This function works with .txt file in the package. It picks the elements that are marked with indicated Latin honors.

Usage

1
getHonorName(file_name, honor)

Arguments

file_name

Name of a text file in inst/extdata or a datasets in a package. See details for file name convention.

honor

Type of Latin honor from c("all", "summa", "magna", "cum", "none"). Pick 'all' for graduates with 'Cum Laude and above.' Pick 'summa' for graduates with 'Summa Cum Laude.' Pick 'magna' for graduates with 'Magna Cum Laude.' Pick 'cum' for graduates with 'Cum Laude.' Pick 'none' for graduates without Latin honors.

Details

files in the package are saved as
"t0203.txt" for class of 2003,
"t0304.txt" for class of 2004,
.
.
.
"t1516.txt" for class of 2016

file_name can also be datasets in package such as wstudent.three or wstudent.ten

Value

Data frame of elements with indicated Latin honor.


pjumrustanasan/wstudent documentation built on May 25, 2019, 8:19 a.m.