add_euclidean | R Documentation |
Add a Euclidean distance measure to the end of a data frame
add_euclidean(df, x, y, .name = "eucd")
df |
A data.frame |
x, y |
The two values to compute the distance from |
.name |
The name of the new column for the distance value |
add_euclidean(iris, Sepal.Width, Sepal.Length) df <- head(iris) df[1, ] <- NA_real_ add_euclidean(df, Sepal.Length, Sepal.Width)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.