# NOT RUN {
## Using several rows of data:
ta <- c(20,22,24)
tr <- ta
vel <- rep(.15,3)
rh <- rep(50,3)
esCoeff <- 0.5
maxLength <- max(sapply(list(ta, tr, vel, rh), length))
ptse <- sapply(seq(maxLength), function(x) { calcPtse(ta[x], tr[x], vel[x],
rh[x], esCoeff=esCoeff) } )
# }
Run the code above in your browser using DataLab