Skip to content

Commit

Permalink
Add forest_fires data set
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Oct 23, 2017
1 parent c141e0a commit 4a5c9d0
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 0 deletions.
42 changes: 42 additions & 0 deletions R/forest_fires_docs.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#' Forest Fires Data Set
#'
#' The aim is to predict the burned area of forest fires, in the northeast
#' region of Portugal, by using meteorological and other data
#'
#' @format A data frame with 517 observations on the following 13 variables.
#' - `X`
#' - x-axis spatial coordinate within the Montesinho park map: 1 to 9
#' - `Y`
#' - y-axis spatial coordinate within the Montesinho park map: 2 to 9
#' - `month`
#' - month of the year: "jan" to "dec"
#' - `day`
#' - day of the week: "mon" to "sun"
#' - `FFMC`
#' - FFMC index from the FWI system: 18.7 to 96.20
#' - `DMC`
#' - DMC index from the FWI system: 1.1 to 291.3
#' - `DC`
#' - DC index from the FWI system: 7.9 to 860.6
#' - `ISI`
#' - ISI index from the FWI system: 0.0 to 56.10
#' - `temp`
#' - temperature in Celsius degrees: 2.2 to 33.30
#' - `RH`
#' - relative humidity in %: 15.0 to 100
#' - `wind`
#' - wind speed in km/h: 0.40 to 9.40
#' - `rain`
#' - outside rain in mm/m2 : 0.0 to 6.4
#' - `area`
#' - the burned area of the forest (in ha): 0.00 to 1090.84#'
#' @source
#' Paulo Cortez, pcortez '@' dsi.uminho.pt, Department of Information Systems, University of Minho, Portugal.
#' Aníbal Morais, araimorais '@' gmail.com, Department of Information Systems, University of Minho, Portugal.
#' @references
#' [ 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)
#' <https://archive.ics.uci.edu/ml/machine-learning-databases/forest-fires/forestfires.csv>
#' <https://archive.ics.uci.edu/ml/datasets/Forest+Fires>
"forest_fires"


1 change: 1 addition & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ The following data sets are included in the `ucidata` package:
- [`bike_sharing_daily`](https://archive.ics.uci.edu/ml/datasets/bike+sharing+dataset)
- [`bridges`](https://archive.ics.uci.edu/ml/datasets/Pittsburgh+Bridges)
- [`car_eval`](https://archive.ics.uci.edu/ml/datasets/Car+Evaluation)
- [`forest_fires`](https://archive.ics.uci.edu/ml/datasets/Forest+Fires)
- [`glass`](https://archive.ics.uci.edu/ml/datasets/Glass+Identification)
- [`hepatitis`](https://archive.ics.uci.edu/ml/datasets/hepatitis)
- [`wine`](https://archive.ics.uci.edu/ml/datasets/wine)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The following data sets are included in the `ucidata` package:
- [`bike_sharing_daily`](https://archive.ics.uci.edu/ml/datasets/bike+sharing+dataset)
- [`bridges`](https://archive.ics.uci.edu/ml/datasets/Pittsburgh+Bridges)
- [`car_eval`](https://archive.ics.uci.edu/ml/datasets/Car+Evaluation)
- [`forest_fires`](https://archive.ics.uci.edu/ml/datasets/Forest+Fires)
- [`glass`](https://archive.ics.uci.edu/ml/datasets/Glass+Identification)
- [`hepatitis`](https://archive.ics.uci.edu/ml/datasets/hepatitis)
- [`wine`](https://archive.ics.uci.edu/ml/datasets/wine)
Expand Down
8 changes: 8 additions & 0 deletions data-raw/forest_fires_build.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### UCI Irvine
## Forest Fire Data https://archive.ics.uci.edu/ml/datasets/Forest+Fires

url_forest_fires = "https://archive.ics.uci.edu/ml/machine-learning-databases/forest-fires/forestfires.csv"

forest_fires = read.csv(url_forest_fires, header = TRUE)

devtools::use_data(forest_fires, overwrite = TRUE)
Binary file added data/forest_fires.rda
Binary file not shown.
78 changes: 78 additions & 0 deletions man/forest_fires.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a5c9d0

Please sign in to comment.