tests/testthat/_snaps/ncl_impl.md

ncl_impl() errors when too few observations for neighbors

Code
  ncl_impl(df, var = "class", neighbors = 5)
Condition
  Error:
  ! Not enough observations to compute 5 nearest neighbors.
  i 3 observations were found, but 6 are needed.


Try the themis package in your browser

Any scripts or data that you put into this service are public.

themis documentation built on Aug. 2, 2026, 9:07 a.m.