This finds the UNITID number for the relevant college. Enter the full name: "Harvard University" rather than "Harvard". If you choose the verbose option, it will print out the top ten matches (but return only the top one).

sg_find_college(college_name, verbose = TRUE)

Arguments

college_name

The full college name to match.

verbose

Whether to print out similar college names (TRUE or FALSE)

Value

The ID number for the closest string match

Examples

print(sg_find_college("University of Massachusetts, Amherst"))
#>                      Institution entity name distances
#> 166629   University of Massachusetts-Amherst         2
#> 166513    University of Massachusetts-Lowell         8
#> 167987 University of Massachusetts-Dartmouth         8
#> 262086    University of Massachusetts Global         8
#> 166638    University of Massachusetts-Boston         9
#> 102632        University of Alaska Southeast        14
#> 178420       University of Missouri-St Louis        15
#> 141981        University of Hawaii-West Oahu        16
#> 155812              University of Saint Mary        16
#> 161217        University of Maine at Augusta        16
#> University of Massachusetts-Amherst 
#>                            "166629"