lf_perpendicular: Find linear function perpendicular to linear function through...

View source: R/Linear_functions.R

lf_perpendicularR Documentation

Find linear function perpendicular to linear function through given point

Description

Find linear function's perpendicular to supplied linear function through given point x.

Usage

lf_perpendicular(x, lf, ...)

Arguments

x

point vector

lf

vector with slope and intercept of linear function or just the slope if intercept will be supplied by ...

...

intercept

Value

matrix with slope and intercept

Author(s)

Florian Wagner florian.wagner@wagnius.ch

Examples

lf_perpendicular(x = c(2,-9),
                      data.frame(slope = c(-3),intercept = c(5)))
lf_perpendicular(x = c(2,-9),
                      cbind(-3,5))
lf_perpendicular(x = c(2,-9),-3,5)
lf_perpendicular(x = c(2,-9), -3,5)

wagnius-GmbH/slvwagner documentation built on Jan. 19, 2025, 7:10 a.m.