Learn R Programming

RSDA (version 3.2.1)

USCrime: Us crime classic data table

Description

Us crime classic data table that can be used to generate symbolic data tables.

Usage

data(USCrime)

Arguments

Format

An object of class data.frame with 1994 rows and 103 columns.

References

HASTIE, T., TIBSHIRANI, R. and FRIEDMAN, J. (2008). The Elements of Statistical Learning: Data Mining, Inference and Prediction. New York: Springer.

Examples

Run this code
if (FALSE) {
data(USCrime)
us.crime <- USCrime
dim(us.crime)
head(us.crime)
summary(us.crime)
names(us.crime)
nrow(us.crime)
result <- classic.to.sym(us.crime,
  concept = "state",
  variables = c(NumInShelters, NumImmig),
  variables.types = c(
    NumInShelters = type.histogram(),
    NumImmig = type.histogram()
  )
)
result
}

Run the code above in your browser using DataLab