View source: R/anem_geoprocessing.R
Get slope and intercept of a line defined by x1, y1, x2, y2
1 | get_slope_intercept(x1, y1, x2 = NULL, y2 = NULL, m = NULL)
|
1 2 3 4 5 6 7 8 9 | ## Not run:
get_slope_intercept(0,0,1,2)
get_slope_intercept(0,-0,2,-1)
get_slope_intercept(0,0,0,3)
get_slope_intercept(0,2,3,2)
get_slope_intercept(1,1,m=-1)
get_slope_intercept(1,1,m=Inf)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.