This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updatded man files for new roxygen2 version, and fixed climate_map fx…
…n to not use fill when only 1 thing
- Loading branch information
Showing
37 changed files
with
251 additions
and
372 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,3 +3,5 @@ Makefile | |
.gitignore | ||
README.Rmd | ||
^appveyor\.yml$ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,19 @@ | ||
% Generated by roxygen2 (4.1.0): do not edit by hand | ||
% Please edit documentation in R/download_kml.R | ||
\name{download_kml} | ||
\alias{download_kml} | ||
\title{Download kml files} | ||
\usage{ | ||
download_kml(locator) | ||
} | ||
\arguments{ | ||
\item{locator}{The a vector of ISO3 country code's that | ||
you want data about. | ||
(http://unstats.un.org/unsd/methods/m49/m49alpha.htm) or | ||
the basin ID's [1-468] | ||
(http://data.worldbank.org/sites/default/files/climate_data_api_basins.pdf)} | ||
\item{locator}{The a vector of ISO3 country code's that you want data about. (http://unstats.un.org/unsd/methods/m49/m49alpha.htm) or the basin ID's [1-468] (http://data.worldbank.org/sites/default/files/climate_data_api_basins.pdf)} | ||
} | ||
\description{ | ||
Downloads map data from in kml format and writes it to a | ||
temporary directory. You must specify a temporary | ||
directory to write files to in your options. | ||
Downloads map data from in kml format and writes it to a temporary directory. You must specify a temporary directory to write files to in your options. | ||
} | ||
\details{ | ||
kml files can be quite large making downloading them every | ||
time you want to make a map time consuming. To reduce this | ||
time it's easiest to download kml files and store them. To | ||
set the directory use a line like this: | ||
\code{options(kmlpath="/Users/emh/kmltemp")} The option | ||
must be called "kmlpath". | ||
kml files can be quite large making downloading them every time you want to make a map time consuming. To | ||
reduce this time it's easiest to download kml files and store them. To set the directory use a line like this: \code{options(kmlpath="/Users/emh/kmltemp")} The option must be called "kmlpath". | ||
} | ||
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,37 +1,26 @@ | ||
% Generated by roxygen2 (4.1.0): do not edit by hand | ||
% Please edit documentation in R/get_climate_data.R | ||
\name{get_climate_data} | ||
\alias{get_climate_data} | ||
\title{get_climate_data} | ||
\usage{ | ||
get_climate_data(locator, geo_type, type, cvar, start, end) | ||
} | ||
\arguments{ | ||
\item{locator}{The ISO3 country code that you want data | ||
about. | ||
(http://unstats.un.org/unsd/methods/m49/m49alpha.htm) or | ||
the basin ID [1-468]} | ||
\item{locator}{The ISO3 country code that you want data about. (http://unstats.un.org/unsd/methods/m49/m49alpha.htm) or the basin ID [1-468]} | ||
|
||
\item{geo_type}{basin or country depending on the locator | ||
type} | ||
\item{geo_type}{basin or country depending on the locator type} | ||
|
||
\item{type}{the type of data you want "mavg" for monthly | ||
averages, "annualavg"} | ||
\item{type}{the type of data you want "mavg" for monthly averages, "annualavg"} | ||
|
||
\item{cvar}{The variable you're interested in. "pr" for | ||
precipitation, "tas" for temperature in celcius.} | ||
\item{cvar}{The variable you're interested in. "pr" for precipitation, "tas" for temperature in celcius.} | ||
\item{start}{The starting year you want data for, can be | ||
in the past or the future. Must conform to the periods | ||
outlined in the world bank API. If given values don't | ||
conform to dates, the fuction will automatically round | ||
them.} | ||
\item{start}{The starting year you want data for, can be in the past or the future. Must conform to the periods outlined in the world bank API. If given values don't conform to dates, the fuction will automatically round them.} | ||
|
||
\item{end}{The ending year you want data for, can be in | ||
the past or the future. Similar to the start date, dates | ||
will be rounded to the nearest end dat.} | ||
\item{end}{The ending year you want data for, can be in the past or the future. Similar to the start date, dates will be rounded to the nearest end dat.} | ||
} | ||
\description{ | ||
Download monthly average climate data from the world bank | ||
climate data api. Ideally you'll want to use the wrapper | ||
functions that call this. | ||
Download monthly average climate data from the world bank climate | ||
data api. Ideally you'll want to use the wrapper functions that call this. | ||
} | ||
Oops, something went wrong.