slr_slope: slr_slope

View source: R/slr_slope.R

slr_slopeR Documentation

slr_slope

Description

This function calcualtes the slope between two vectors.

Usage

slr_slope(x, y, na.rm = TRUE)

Arguments

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 TRUE.

Value

The calculated slope.

Examples

x <- c(1:4)
y <- c(2:5)
slr_slope(x, y)


yelleKneK/SMSD documentation built on Nov. 23, 2022, 6:40 p.m.