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