Learn R Programming

BSDA (version 1.01)

Attorney: Number of convictions reported by U.S. attorney's offices

Description

Data for Exercises 2.2, 2.43 and 2.57

Usage

Attorney

Arguments

Format

A data frame with 88 observations on the following 3 variables.

Staff

a numeric vector

Convict

a numeric vector

District

a factor with levels Albuquerque Alexandria, va Anchorage Asheville, NC Atlanta Baltimore Baton Rouge Billings, Mt Birmingham, Al Boise, Id Boston Buffalo Burlington, Vt Cedar Rapids Charleston, WVA Cheyenne, Wy Chicago Cincinnati Cleveland Columbia, SC Concord, NH Denver Des Moines Detroit East St. Louis Fargo, ND Fort Smith, Ark Fort Worth Grand Rapids, Mi Greensboro, NC Honolulu Houston Indianapolis Jackson, Miss Kansas City Knoxville, Tn Las Vegas Lexington, Ky Little Rock Los Angeles Louisville Memphis Miami Milwaukee Minneapolis Mobile, Ala Montgomery, Ala Muskogee, Ok Nashville New Haven, Conn New Orleans New York (Brooklyn) New York (Manhattan) Newark, NJ Oklahoma City Omaha Oxford, Miss Pensacola, Fl Philadelphia Phoenix Pittsburgh Portland, Maine Portland, Ore Providence, RI Raleigh, NC Roanoke, Va Sacramento Salt Lake City San Antonio San Diego San Francisco Savannah, Ga Scranton, Pa Seattle Shreveport, La Sioux Falls, SD South Bend, Ind Spokane, Wash Springfield, Ill St. Louis Syracuse, NY Tampa Topeka, Kan Tulsa Tyler, Tex Washington Wheeling, WVa Wilmington, Del

Examples

Run this code
# NOT RUN {
str(Attorney)
attach(Attorney)
par(mfrow=c(1,2))
plot(Staff,Convict,main="With Washington, D.C.")
plot(Staff[-86],Convict[-86],main="Without Washington, D.C.")
par(mfrow=c(1,1))
detach(Attorney)
# }

Run the code above in your browser using DataLab