Skip to content

Programming challenges #1

@edzer

Description

@edzer
  • building on the sf package, write a function that for p features, given n, finds the n nearest features and returns their index as a list with integer vectors. A brute-force method would first compute the complete distance matrix using st_distance; a smarter method avoids storing the full matrix by iterating over the features, a really smart method uses a spatial index to avoid having to compute all distances. See also Planar index r-spatial/sf#76
  • ideas and wishes from several people are mentioned here and in links found there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions