weathermetrics: Functions to Convert Between Weather Metrics
- CRAN: http://cran.r-project.org/web/packages/weathermetrics/index.html
- GitHub: https://github.com/geanders/weathermetrics/
- Vignettes: weathermetrics
> library(weathermetrics)
> data("lyon")
> data("newhaven")
バージョン: 1.2.2
関数名 | 概略 |
---|---|
angeles |
Weather in Los Angeles, CA |
beijing |
Weather in Beijing, China |
breck |
Precipitation in Breckenridge, CO |
celsius.to.fahrenheit |
Convert from Celsius to Fahrenheit. |
celsius.to.kelvin |
Convert from Celsius to Kelvin. |
convert_precip |
Convert between precipitation metrics |
convert_temperature |
Convert from one temperature metric to another |
convert_wind_speed |
Convert between wind speed metrics |
dewpoint.to.humidity |
Calculate relative humidity. |
fahrenheit.to.celsius |
Convert from Fahrenheit to Celsius. |
fahrenheit.to.kelvin |
Convert from Fahrenheit to Kelvin. |
foco |
Weather in Fort Collins, CO |
heat.index |
Calculate heat index. |
heat.index.algorithm |
Algorithm for heat.index function. |
humidity.to.dewpoint |
Calculate dew point temperature. |
inches_to_metric |
Convert from inches to standard metric units of measure for precipitation |
kelvin.to.celsius |
Convert from Kelvin to Celsius. |
kelvin.to.fahrenheit |
Convert from Kelvin to Fahrenheit. |
knots_to_speed |
Convert from knots to standard units of wind speed |
loveland |
Precipitation in Loveland, CO |
lyon |
Weather in Lyon, France |
metric_to_inches |
Convert between standard metric units of measure for precipitation to inches |
newhaven |
Weather in New Haven, CT |
norfolk |
Weather in Norfolk, VA |
puravida |
Weather in San Jose, Costa Rica |
speed_to_knots |
Convert between standard units of measure for wind speed |
suffolk |
Weather in Suffolk, VA |
weathermetrics |
weathermetrics: Functions to convert between weather metrics |
convert_precip
> convert_precip(breck$Precip.in,
+ old_metric = "inches", new_metric = "mm", round = 2)
[1] 1.02 0.00 1.78 0.00 1.27 0.25 0.25
convert_temperature
> convert_temperature(lyon$TemperatureC,
+ old_metric = "celsius",
+ new_metric = "fahrenheit")
[1] 71.6 75.2 75.2 69.8 73.4 68.0 60.8
convert_wind_speed
> convert_wind_speed(beijing$kmph,
+ old_metric = "kmph", new_metric = "knots")
[1] 3.5 7.8 9.6 9.6 3.5 2.6 4.3
dewpoint.to.humidity
> dewpoint.to.humidity(t = lyon$TemperatureC,
+ dp = lyon$DewpointC,
+ temperature.metric = "celsius")
[1] 56.78893 50.28890 38.56789 49.54916 53.43049 46.07966 72.40572
heat.index
> heat.index(t = lyon$TemperatureC,
+ dp = lyon$DewpointC,
+ temperature.metric = "celsius",
+ output.metric = "fahrenheit")
[1] 71 75 74 69 73 67 60
humidity.to.dewpoint
> humidity.to.dewpoint(t = newhaven$TemperatureF,
+ rh = newhaven$Relative.Humidity,
+ temperature.metric = "fahrenheit")
[1] 31.47 32.45 37.84 32.75 32.48 33.63 51.18
lyon
> data("lyon")
> lyon
Date TemperatureC DewpointC
1 2000-06-18 22 13
2 2000-06-19 24 13
3 2000-06-20 24 9
4 2000-06-21 21 10
5 2000-06-22 23 13
6 2000-06-23 20 8
7 2000-06-24 16 11