zips.kc: Example ZIP Code Vector.

Description Usage Format Details

Description

A vector of ZIP codes.

Usage

1

Format

A character vector with a length that matches the number of rows of X.kc (i.e. zips.kc is of the order of magnitude of 1000 elements). Each entry represents the ZIP code of one business.

Details

zips.kc[i] represents the ZIP code for the restaurant represented in the ith row of the X.kc inspection scores matrix. ZIP codes in zips.kc have the format "zip.j" where j is an integer between 1 and 11. We replaced real King County (WA) ZIP code names with fictional ZIP code names so as to make data less identifiable (although inspection data is already publicly available). In this replacement step, we also demonstrate that our functions can be applied not solely over character vectors of real ZIP codes, but any vector of character strings representing the same facet for all restaurants can be used in the grading process.


King-County-Restaurant-Grading/DineSafeR documentation built on May 8, 2019, 4:50 p.m.