Learn R Programming

healthcareai (version 1.2.4)

lineMagnitude: Compute the distance between two points

Description

compute the distance between two points given the x, y axes of the points.

Usage

lineMagnitude(x1, y1, x2, y2)

Arguments

x1

A numeric vector, x axis of the points

y1

A numeric vector, y axis of the points

x2

A numeric vector, x axis of the points

y2

A numeric vector, y axis of the points

Value

A numeric vector, the length between two points.

References

http://healthcare.ai

See Also

healthcareai

Examples

Run this code
# NOT RUN {
lineMagnitude(c(1,0),c(2,0),5,3)
# }

Run the code above in your browser using DataLab