From 4a5c9d011c54ea24ce86f22edd5c8073855e283c Mon Sep 17 00:00:00 2001 From: James J Balamuta Date: Sun, 22 Oct 2017 22:06:26 -0500 Subject: [PATCH] Add forest_fires data set --- R/forest_fires_docs.R | 42 ++++++++++++++++++ README.Rmd | 1 + README.md | 1 + data-raw/forest_fires_build.R | 8 ++++ data/forest_fires.rda | Bin 0 -> 7408 bytes man/forest_fires.Rd | 78 ++++++++++++++++++++++++++++++++++ 6 files changed, 130 insertions(+) create mode 100644 R/forest_fires_docs.R create mode 100644 data-raw/forest_fires_build.R create mode 100644 data/forest_fires.rda create mode 100644 man/forest_fires.Rd diff --git a/R/forest_fires_docs.R b/R/forest_fires_docs.R new file mode 100644 index 0000000..f2b004a --- /dev/null +++ b/R/forest_fires_docs.R @@ -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) +#' +#' +"forest_fires" + + diff --git a/README.Rmd b/README.Rmd index c18562d..da75210 100644 --- a/README.Rmd +++ b/README.Rmd @@ -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) diff --git a/README.md b/README.md index 42961de..43b90cb 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/data-raw/forest_fires_build.R b/data-raw/forest_fires_build.R new file mode 100644 index 0000000..6fd53ef --- /dev/null +++ b/data-raw/forest_fires_build.R @@ -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) diff --git a/data/forest_fires.rda b/data/forest_fires.rda new file mode 100644 index 0000000000000000000000000000000000000000..8a26acaf5e98ffd64f5d4e0f9f6bee7b130abb01 GIT binary patch literal 7408 zcmVqXX2?67f_HPUh?M0!- zB0M|Q(Y$dW-Uqv=2BttJfI~q5OahNXDL+A?VKp*r0zDy`lhYLPCLX4qra;uwPbAX_ z)6~;OKxAkD4@3c=000^^27uFP15ZRmL`cNahMH;W4FCWQ0000041flJ0BFz;Pyhe` z0iXZ?00E!|fM@^^0B8Wv00006AQ}J$fB*mtjWB=!41fRt0009(0000010Wg#OsPc% zsg(T`_LTJl)M(Jq01XWQ0000001W`p00w{n000000000013&;0NmD85Pt@8brZ$sD zs(PE!OomU?X_PR^FrTVDOlU?!BN~|+9;fOaqd?O@(^J&in8X7%+&3xTIe`zlwB?|sS^1j{I=Xr-- zQuETAoMqjki}SSn-IrmoD&u{g16;6Dk)(4t(QX&T#xUo~`U3W5hR`*+U35am5=JmH6rK zP$PN}Xa-4-FB>5l8L3C4N+Kc_(`8thK!Z`J3{KBU&qj;N8#cCj-(}K>A|fJw&!X2U zU=arylhe_uK#(>%{ahBgT{BJan>aj9-CWx$-5SkA)Sx(kF)=x8+9fWR)WOoc$r829 zf&a$T5PIo z5^Y*`En9`H#3tN3cI?r*PfwrKc3!m$^`QF;&cP%TblyKB*>Z0-V>eym@BH3>nty*I zh4lV3Q5%}Y_&+!Dn)RBFqid?z$4kUp=__Z;$*{*ix8GKOm1^7Ko=acY6}Y`54DtX< zNDB(zfxsXF%8)9DvlOS5^0Ucalnh0B3u@mHZZUaf#@2APt~ZyxTXQiywrXiiYUZ)# zmFno-;ZD}kz3wY76V{}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`>rP%!gBBoa_r~dX3R&x5=4n=GB*N8{PNUX-x(p#L= zsvDNl0-%M$_Z98}NR;vB-PwsR`Te&m1Hf<7^lA$uKKzX&UD+m2a`dxSwV~TQ!`!vO zcWaJlc7$W&NSANm+ye@+qM=0nUN?%xmCob4=UUOM(V^nm1PuyH4c^SwqYEC-zvb_X zuXBmgnUv)KlMs;PBFvy7h@im7A@cXn3S)hx3?g(UI4M-nvask-ek-*G|I=*GHY&Wh=sV0h%U9bv0Zg<+k!q!53^SqUu92-`3|Z^&y2VW zmMycyqe-fxj;rQHJZB?l9S1&8HlX#@ZXcUg=^Ty=7qcRBu zKoJ5V>`l3PG|2G7()zwNlg5*(0Ba~Ijx!7E|1;UCWmnfj1xgCX53NG0}a^!HJxDgzpE=OS%%YkqxC@3gl zQP^{_gYLb{-UyMUD26k?RAiqtjFKonzzjpl{&T>xWrAb@F@b`6M5;iz1WAGh=xqA* z1dVxp9sPpr({~plsXT&oAVx?$UJ7vFyeIQRC%KKMb|4vY^A^=^K>z*&YjV5OI z2e#sZ$1k8pZpl6da*_>at*2teuW7GKHcwPeH8~;M0LXIQX@7(P59_Ne9YyUOXzD}> z0!aeaWUOoERpp5BgdWrM>XhYt9}C0TZ7*LR8X%pHO+z1GAJo$sHF9YVZ;m%MGcj@- z4Pjc?hoRNl-1i2-fdgm^@;66Ka2u)N(boU#l`urgn)1t+j&C=VsFjXsa+5XV=*JB@ iU6_Z>vLUT_mj<5Y?vBo!HW%;z@pmLsg$V(jJ|^%t%HCQ4 literal 0 HcmV?d00001 diff --git a/man/forest_fires.Rd b/man/forest_fires.Rd new file mode 100644 index 0000000..a6f804d --- /dev/null +++ b/man/forest_fires.Rd @@ -0,0 +1,78 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/forest_fires_docs.R +\docType{data} +\name{forest_fires} +\alias{forest_fires} +\title{Forest Fires Data Set} +\format{A data frame with 517 observations on the following 13 variables. +\itemize{ +\item \code{X} +\itemize{ +\item x-axis spatial coordinate within the Montesinho park map: 1 to 9 +} +\item \code{Y} +\itemize{ +\item y-axis spatial coordinate within the Montesinho park map: 2 to 9 +} +\item \code{month} +\itemize{ +\item month of the year: "jan" to "dec" +} +\item \code{day} +\itemize{ +\item day of the week: "mon" to "sun" +} +\item \code{FFMC} +\itemize{ +\item FFMC index from the FWI system: 18.7 to 96.20 +} +\item \code{DMC} +\itemize{ +\item DMC index from the FWI system: 1.1 to 291.3 +} +\item \code{DC} +\itemize{ +\item DC index from the FWI system: 7.9 to 860.6 +} +\item \code{ISI} +\itemize{ +\item ISI index from the FWI system: 0.0 to 56.10 +} +\item \code{temp} +\itemize{ +\item temperature in Celsius degrees: 2.2 to 33.30 +} +\item \code{RH} +\itemize{ +\item relative humidity in %: 15.0 to 100 +} +\item \code{wind} +\itemize{ +\item wind speed in km/h: 0.40 to 9.40 +} +\item \code{rain} +\itemize{ +\item outside rain in mm/m2 : 0.0 to 6.4 +} +\item \code{area} +\itemize{ +\item 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. +} +\usage{ +forest_fires +} +\description{ +The aim is to predict the burned area of forest fires, in the northeast +region of Portugal, by using meteorological and other data +} +\references{ +\href{http://www.dsi.uminho.pt/~pcortez/fires.pdf}{ 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} +\url{https://archive.ics.uci.edu/ml/machine-learning-databases/forest-fires/forestfires.csv} +\url{https://archive.ics.uci.edu/ml/datasets/Forest+Fires} +} +\keyword{datasets}