Giter Club home page Giter Club logo

madrid.air's Introduction

Build Status codecov CII Best Practices

Madrid Air Quality Data Parser

Convert raw air quality data published by http://datos.madrid.es/ to a clean data frame.

The original format is hard to interpret:

2807900214060201042844.55V52.04V48.30V48.37V23.60V27.89V28.42V13.75V19.11V38.89V26.32V27.05V41.60V46.91V58.52V77.15V74.55V60.91V52.33V46.20V23.47V9.500V12.24V18.92V

madrid.air allows you to convert it to a more readable form:

     Station Year Month Day Hour Magnitude Value
1	28079002 2001     4  28    1        O3 44.55
2	28079002 2001     4  28    2        O3 52.04
3	28079002 2001     4  28    3        O3 48.30
...

Installation

To install madrid.air from GitHub start the R CMD interface and run the following commands:

install.packages("devtools")
library(devtools)
install_github("nramon/madrid.air")

Downloading Madrid air quality data

Both daily and hourly data can be freely downloaded from http://datos.madrid.es/.

Usage

See the package documentation for usage instructions and examples:

library(madrid.air)
?madrid.air
?madrid.air.parse
?madrid.air.magnitudes
?madrid.air.stations

Bugs and issues

To provide feedback please use the issue tracker.

Contributing

See CONTRIBUTING.md.

Copyright

Copyright (C) 2016 Ramon Novoa [email protected]

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

madrid.air's People

Contributors

nramon avatar

Stargazers

Anatoly Chernov avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.