R/loc.slp.R

Defines functions loc.slp

Documented in loc.slp

loc.slp <- function() {
  coord <- locator(2)
  slp <- (coord$y[2]-coord$y[1])/(coord$x[2]-coord$x[1])
  return(slp)
}

Try the RVAideMemoire package in your browser

Any scripts or data that you put into this service are public.

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.