get_slope: Get the slope between two points

View source: R/exported_functions.R

get_slopeR Documentation

Get the slope between two points

Description

Simple helper function to compute slope between two cartesian points

Usage

get_slope(a, b)

Arguments

a

a vector containing two (and only two) points corresponding to x and y.

b

a vector containing two (and only two) points corresponding to x and y.

Value

slope value

Examples

get_slope(c(0, 0), c(1, 3))

firthj/oneliners documentation built on June 29, 2022, 11:19 p.m.