Learn R Programming

beadplexr (version 0.5.0)

calc_dist_to_centre: Calculate euclidean distance between two points.

Description

Calculate euclidean distance between two points.

Usage

calc_dist_to_centre(.x, .c)

Value

A numerical vector with the euclidean distance between the two points.

Arguments

.x

A numerical vector with coordinates to a point.

.c

A numerical vector with the coordinates to the center.

Examples

Run this code
beadplexr:::calc_dist_to_centre(.x = c(10, 15), .c = c(1, 2))

Run the code above in your browser using DataLab