Us crime classic data table that can be used to generate symbolic data tables.
data(USCrime)
An object of class data.frame
with 1994 rows and 103 columns.
HASTIE, T., TIBSHIRANI, R. and FRIEDMAN, J. (2008). The Elements of Statistical Learning: Data Mining, Inference and Prediction. New York: Springer.
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