# Calculate dew point temperature from relative humidity and
# air temperature.
data(newhaven)
newhaven$DP <- humidity.to.dewpoint(t = newhaven$TemperatureF,
rh = newhaven$Relative.Humidity,
temperature.metric = 'fahrenheit')
newhaven
Run the code above in your browser using DataLab