Welcome to the weatherstack R package.
The goal of weatherstack is to retrieve current and historical weather information from any location around the world.
Using the instructions and interactive code examples below you will be able to start using this R package to request weatherstack API.
Before you start,You need access to weatherstack API Key, set up an weatherstack API account here (https://weatherstack.com).
You can install the released version of weatherstack from CRAN with:
installing package
# install.packages("weatherstack")
<<<<<<< HEAD Installing some other useful librares for plotting purposes.
library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 3.6.2
library(hrbrthemes)
#> NOTE: Either Arial Narrow or Roboto Condensed fonts are required to use these themes.
#> Please use hrbrthemes::import_roboto_condensed() to install Roboto Condensed and
#> if Arial Narrow is not on your system, please see http://bit.ly/arialnarrow
=======
d77a8ef2571ac9867c86fef140fc9613d9c0389e
| Function name | Description | Example |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| weatherstack_current
| To query the weatherstack API for real-time weather data in a location of your choice | pass unit identifier as Metric weatherstack_current("API_KEY","New York","m")
or as Scientific weatherstack_current("API_KEY","New York","s")
or as Fahrenheit weatherstack_current("API_KEY","New York","f")
|
| weatherstack_Lookup
| pinpoint one or more specific locations and their identifying response objects with the aim of later passing them to other function | weatherstack_Lookup("API_KEY","London")
|
| weatherstack_historical
| To look up historical weather data all the way back to 2008, simply pass one date of your choice (later than July 2008) or multiple semicolon-separated dates | pass unit identifier as celcius weatherstack_historical("API_KEY", "Vancouver", "2015-01-02", 'Celcius')
or AS Fahrenheit weatherstack_historical("API_KEY", "Vancouver", "2015-01-02", 'Fahrenheit')
|
| weatherstack_timeSeries
| Processing historical time-series results with parameters historical_date_start and historical_date_end are set to valid dates | weatherstack_timeSeries("API_KEY","New York","2015-01-21","2015-01-25")
|
Please file any bugs or questions send in a pull request.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.