calcGrade: Calculate the grade from rise and run

Description Usage Arguments Value References

Description

Calculate the grade from rise and run. The grade can be returned as a proportion, percent or angle in radians. In addition, the run can be input as a slope length. In this case, the actual run is first calculated using the pythagorean theorem and then used in subsequent calculations.

Usage

1
2
calcGrade(rise, run, unit = c("proportion", "percent", "angle"),
  is.slope.length = F)

Arguments

rise

a vector of slope rise values

run

a vector of slope run values

unit

what unit should the grade be returned in

is.slope.length

logical, TRUE if the run vector is actually a slope length

Value

a vector of grade values

References

“Grade (slope).” Wikipedia, the Free Encyclopedia, September 2, 2013. http://en.wikipedia.org/w/index.php?title=Grade_(slope)&oldid=571239608.


jasonelaw/nrsa documentation built on Nov. 8, 2019, 11:34 a.m.