-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from SevillaR/master
Update from original repo
- Loading branch information
Showing
10 changed files
with
62 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ Type: Package | |
Title: Obtain Climatic and Meteorological Data from Spanish Meteorological Agency (AEMET) | ||
Version: 0.1.2 | ||
Date: 2018-03-17 | ||
Authors@R: c(person("Francisco", "Balao", role = "aut"), | ||
Authors@R: c( | ||
person("Francisco", "Rodriguez-Sanchez", email = "[email protected]", role = c("aut", "cre")), | ||
person("Francisco", "Balao", role = "aut"), | ||
person("Francisco", "Viciana", role = "aut"), | ||
person("Pedro", "Molina", role = "aut"), | ||
person("Jose", "Alcaide", role = "aut"), | ||
|
@@ -20,7 +21,8 @@ Depends: | |
R (>= 3.0.0) | ||
Imports: | ||
httr, | ||
jsonlite | ||
jsonlite, | ||
stringr | ||
VignetteBuilder: knitr | ||
RoxygenNote: 6.0.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(aemet_climatology_station) | ||
export(aemet_stations) | ||
export(dms2decdegrees) | ||
export(get_aemet_normalized) | ||
export(get_data) | ||
import(httr) | ||
importFrom(jsonlite,fromJSON) | ||
importFrom(stringr,str_extract_all) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#' Get normal climatology values for a station | ||
#' | ||
#' Standard climatology from 1981 to 2010. | ||
#' | ||
#' @param station Station identifier code (see \code{\link{aemet_stations}}). | ||
#' @param apikey Personal API key (see \url{https://opendata.aemet.es/centrodedescargas/inicio}). | ||
#' | ||
#' @return a data.frame | ||
#' @export | ||
#' | ||
#' @examples \dontrun{ | ||
#' aemet_climatology_station("5911A") | ||
#' } | ||
aemet_climatology_station <- function(station, apikey) { | ||
|
||
apidest <- paste0("/api/valores/climatologicos/normales/estacion/", station) | ||
|
||
clim <- get_data(apidest, apikey) | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.