Learn R Programming

ClimInd (version 0.1-2)

hi: Heat Index

Description

Combines air temperature and relative humidity to determine the human-perceived equivalent temperature

Usage

hi(taverage, rh, data_names = NULL, time.scale = YEAR, na.rm = FALSE)

Arguments

taverage

medium temperature

rh

relative humidity

data_names

names of each period of time

time.scale

month, season or year

na.rm

logical. Should missing values (including NaN) be removed?

Value

Heat Index

Formula

$$HI= -42,379+2,04901523*TG+10,14333127*rh-0,22475541*TG*rh-0.00683783*TG^2-0.05481717*rh^2+0.0122874*TG^2*rh+0.00085282*TG*rh^2-0.00000199*TG^2*rh^2$$. Where TG is air temperature in <U+00BA>F and rh is relative humidity in

References

http://www.wpc.ncep.noaa.gov/html/heatindex_equation.shtml

Examples

Run this code
# NOT RUN {
data(data_all)
hi(taverage = data_all$tg, rh = data_all$humidity)
# }

Run the code above in your browser using DataLab