distToNearest return object might be better as a vector

Issue #1 resolved
Jason Vander Heiden created an issue

It'd probably be a little cleaner (quicker, more memory efficient, more modular) to return a vector (just the distance column) from distToNearest instead of a copy of the entire data.frame.

Comments (1)

  1. Jason Vander Heiden reporter

    Optional argument added to return distance as a vector. Found that returning the whole data.frame was very useful for ddply operations.

  2. Log in to comment