Skip to content

Commit 4a5c9d0

Browse files
committed
Add forest_fires data set
1 parent c141e0a commit 4a5c9d0

File tree

6 files changed

+130
-0
lines changed

6 files changed

+130
-0
lines changed

R/forest_fires_docs.R

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#' Forest Fires Data Set
2+
#'
3+
#' The aim is to predict the burned area of forest fires, in the northeast
4+
#' region of Portugal, by using meteorological and other data
5+
#'
6+
#' @format A data frame with 517 observations on the following 13 variables.
7+
#' - `X`
8+
#' - x-axis spatial coordinate within the Montesinho park map: 1 to 9
9+
#' - `Y`
10+
#' - y-axis spatial coordinate within the Montesinho park map: 2 to 9
11+
#' - `month`
12+
#' - month of the year: "jan" to "dec"
13+
#' - `day`
14+
#' - day of the week: "mon" to "sun"
15+
#' - `FFMC`
16+
#' - FFMC index from the FWI system: 18.7 to 96.20
17+
#' - `DMC`
18+
#' - DMC index from the FWI system: 1.1 to 291.3
19+
#' - `DC`
20+
#' - DC index from the FWI system: 7.9 to 860.6
21+
#' - `ISI`
22+
#' - ISI index from the FWI system: 0.0 to 56.10
23+
#' - `temp`
24+
#' - temperature in Celsius degrees: 2.2 to 33.30
25+
#' - `RH`
26+
#' - relative humidity in %: 15.0 to 100
27+
#' - `wind`
28+
#' - wind speed in km/h: 0.40 to 9.40
29+
#' - `rain`
30+
#' - outside rain in mm/m2 : 0.0 to 6.4
31+
#' - `area`
32+
#' - the burned area of the forest (in ha): 0.00 to 1090.84#'
33+
#' @source
34+
#' Paulo Cortez, pcortez '@' dsi.uminho.pt, Department of Information Systems, University of Minho, Portugal.
35+
#' Aníbal Morais, araimorais '@' gmail.com, Department of Information Systems, University of Minho, Portugal.
36+
#' @references
37+
#' [ P. Cortez and A. Morais. A Data Mining Approach to Predict Forest Fires using Meteorological Data. In J. Neves, M. F. Santos and J. Machado Eds., New Trends in Artificial Intelligence, Proceedings of the 13th EPIA 2007 - Portuguese Conference on Artificial Intelligence, December, Guimarães, Portugal, pp. 512-523, 2007. APPIA, ISBN-13 978-989-95618-0-9](http://www.dsi.uminho.pt/~pcortez/fires.pdf)
38+
#' <https://archive.ics.uci.edu/ml/machine-learning-databases/forest-fires/forestfires.csv>
39+
#' <https://archive.ics.uci.edu/ml/datasets/Forest+Fires>
40+
"forest_fires"
41+
42+

README.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ The following data sets are included in the `ucidata` package:
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)
8080
- [`car_eval`](https://archive.ics.uci.edu/ml/datasets/Car+Evaluation)
81+
- [`forest_fires`](https://archive.ics.uci.edu/ml/datasets/Forest+Fires)
8182
- [`glass`](https://archive.ics.uci.edu/ml/datasets/Glass+Identification)
8283
- [`hepatitis`](https://archive.ics.uci.edu/ml/datasets/hepatitis)
8384
- [`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
@@ -62,6 +62,7 @@ The following data sets are included in the `ucidata` package:
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)
6464
- [`car_eval`](https://archive.ics.uci.edu/ml/datasets/Car+Evaluation)
65+
- [`forest_fires`](https://archive.ics.uci.edu/ml/datasets/Forest+Fires)
6566
- [`glass`](https://archive.ics.uci.edu/ml/datasets/Glass+Identification)
6667
- [`hepatitis`](https://archive.ics.uci.edu/ml/datasets/hepatitis)
6768
- [`wine`](https://archive.ics.uci.edu/ml/datasets/wine)

data-raw/forest_fires_build.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
### UCI Irvine
2+
## Forest Fire Data https://archive.ics.uci.edu/ml/datasets/Forest+Fires
3+
4+
url_forest_fires = "https://archive.ics.uci.edu/ml/machine-learning-databases/forest-fires/forestfires.csv"
5+
6+
forest_fires = read.csv(url_forest_fires, header = TRUE)
7+
8+
devtools::use_data(forest_fires, overwrite = TRUE)

data/forest_fires.rda

7.23 KB
Binary file not shown.

man/forest_fires.Rd

Lines changed: 78 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)