tests/testthat/_snaps/clustering.md

bad args

`vars` are required and must be variables in `data`.
`v` must be a single positive integer greater than 1
The number of rows is less than `v = 500`
`cluster_function` must be one of "kmeans" or "hclust", not "not an option".
Code
  clustering_cv(Orange, v = 1, vars = "Tree")
Condition
  Error in `clustering_cv()`:
  ! `v` must be a single positive integer greater than 1
`repeats` must be a single positive integer
`repeats` must be a single positive integer

printing

Code
  clustering_cv(dat1, c, v = 2)
Output
  # 2-cluster cross-validation 
  # A tibble: 2 x 2
    splits         id   
    <list>         <chr>
  1 <split [5/15]> Fold1
  2 <split [15/5]> Fold2


Try the rsample package in your browser

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

rsample documentation built on May 29, 2024, 11:03 a.m.