dist_vec: compute distances between two vectors of points

View source: R/dist_vec.R

dist_vecR Documentation

compute distances between two vectors of points

Description

compute distances between two vectors of points

Usage

dist_vec(idxy1, idxy2, row_id = T)

Arguments

idxy1

first vector of coordinates

idxy2

second vector of coordinates

row_id

should row ids be returned

Details

This program is free software but it is provided WITHOUT WARRANTY and with ABSOLUTELY NO GUARANTEE of fitness or functionality for any purpose; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.


Revision History

1.0 12/7/2023 Created
1.1 date and revisions..

Value

<Delete and Replace>

Author(s)

Jacob Strunk <someone@somewhere.com>

See Also

dist
sweep

Examples

 dat1 = data.frame(id=1:25, x=25:49, y=61:85)
 dat2 = data.frame(id=LETTERS[1:10], x=rnorm(10), y=runif(10))
 dist_vec(dat1, dat2)



jstrunk001/RForInvt documentation built on April 17, 2025, 5:02 p.m.