Learn R Programming

moderndive (version 0.7.0)

DD_vs_SB: Dunkin Donuts vs Starbucks

Description

Number of Dunkin Donuts & Starbucks, median income, and population in 1024 census tracts in eastern Massachusetts in 2016.

Usage

DD_vs_SB

Arguments

Format

A data frame of 1024 rows representing census tracts and 6 variables

county

County where census tract is located. Either Bristol, Essex, Middlesex, Norfolk, Plymouth, or Suffolk county

FIPS

Federal Information Processing Standards code identifying census tract

median_income

Median income of census tract

population

Population of census tract

shop_type

Coffee shop type: Dunkin Donuts or Starbucks

shops

Number of shops