slr_slope | R Documentation |
This function calcualtes the slope between two vectors.
slr_slope(x, y, na.rm = TRUE)
x |
The first vector |
y |
The second vector |
na.rm |
This parameter controls whether NA values are removed from
the data prior to calculation. Default is |
The calculated slope.
x <- c(1:4) y <- c(2:5) slr_slope(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.