Skip to content

Commit c141e0a

Browse files
committed
Add car_eval data
1 parent 47fe0e8 commit c141e0a

File tree

6 files changed

+100
-0
lines changed

6 files changed

+100
-0
lines changed

R/car_eval_docs.R

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#' Car Evaluation Data Set
2+
#'
3+
#' Car Evaluation Database was derived from a simple hierarchical decision model
4+
#' originally developed for the demonstration of DEX.
5+
#'
6+
#' @format A data frame with 1728 observations on the following 7 variables.
7+
#' - `buying`
8+
#' - vhigh, high, med, low.
9+
#' - `maint`
10+
#' - vhigh, high, med, low.
11+
#' - `doors`
12+
#' - 2, 3, 4, 5more.
13+
#' - `persons`
14+
#' - 2, 4, more.
15+
#' - `lug_boot`
16+
#' - small, med, big.
17+
#' - `safety`
18+
#' - low, med, high.
19+
#' - `class_value`
20+
#' - unacc, acc, good, vgood
21+
#' @source
22+
#' Marko Bohanec (marko.bohanec '@' ijs.si)
23+
#' Blaz Zupan (blaz.zupan '@' ijs.si)
24+
#' @references
25+
#' M. Bohanec, V. Rajkovic: Expert system for decision making. Sistemica 1(1), pp. 145-157, 1990.)
26+
#' <https://archive.ics.uci.edu/ml/machine-learning-databases/car/car.data>
27+
#' <https://archive.ics.uci.edu/ml/datasets/Car+Evaluation>
28+
"car_eval"

README.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ The following data sets are included in the `ucidata` package:
7777
- [`bcw_original` (Breast Cancer Wisconsin Original)](https://archive.ics.uci.edu/ml/datasets/bike+sharing+dataset)
7878
- [`bike_sharing_daily`](https://archive.ics.uci.edu/ml/datasets/bike+sharing+dataset)
7979
- [`bridges`](https://archive.ics.uci.edu/ml/datasets/Pittsburgh+Bridges)
80+
- [`car_eval`](https://archive.ics.uci.edu/ml/datasets/Car+Evaluation)
8081
- [`glass`](https://archive.ics.uci.edu/ml/datasets/Glass+Identification)
8182
- [`hepatitis`](https://archive.ics.uci.edu/ml/datasets/hepatitis)
8283
- [`wine`](https://archive.ics.uci.edu/ml/datasets/wine)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ The following data sets are included in the `ucidata` package:
6161
- [`bcw_original` (Breast Cancer Wisconsin Original)](https://archive.ics.uci.edu/ml/datasets/bike+sharing+dataset)
6262
- [`bike_sharing_daily`](https://archive.ics.uci.edu/ml/datasets/bike+sharing+dataset)
6363
- [`bridges`](https://archive.ics.uci.edu/ml/datasets/Pittsburgh+Bridges)
64+
- [`car_eval`](https://archive.ics.uci.edu/ml/datasets/Car+Evaluation)
6465
- [`glass`](https://archive.ics.uci.edu/ml/datasets/Glass+Identification)
6566
- [`hepatitis`](https://archive.ics.uci.edu/ml/datasets/hepatitis)
6667
- [`wine`](https://archive.ics.uci.edu/ml/datasets/wine)

data-raw/car_eval_build.R

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
### UCI Irvine
2+
## Car Evalutation Data https://archive.ics.uci.edu/ml/datasets/Car+Evaluation
3+
4+
url_car_eval = "https://archive.ics.uci.edu/ml/machine-learning-databases/car/car.data"
5+
6+
car_eval = read.csv(url_car_eval, header = FALSE)
7+
8+
colnames(car_eval) = c("buying",
9+
"maint",
10+
"doors",
11+
"persons",
12+
"lug_boot",
13+
"safety",
14+
"class_value")
15+
16+
devtools::use_data(car_eval, overwrite = TRUE)

data/car_eval.rda

514 Bytes
Binary file not shown.

man/car_eval.Rd

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)