tests/testthat/_snaps/sampling.md

downSample returns the data untouched for a numeric outcome

Down-sampling requires a factor variable as the response. The original data was returned.

upSample returns the data untouched for a numeric outcome

Up-sampling requires a factor variable as the response. The original data was returned.


Try the caret package in your browser

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

caret documentation built on Nov. 15, 2026, 9:06 a.m.