Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
since data.table uses reference semantics rather than lazy data structures, it is necessary to use the force() to make sure the parameters dist_var and variable are evaluated before the object data is manipulated in the function body of kNN. If the return value does not have the correct type (R/kNNFaster#185), then indexing does not behave as expected in one of the tests (tests/test_kNN.R#65)
- Loading branch information