The documentation for these functions does not seem to explain the desired input for the "weights" argument.
Is this meant to be a simple set of counts, which the sample function will then take into account as necessary?
Is this meant to be a set of inverse probability weights?
Is this meant to be a set of pre-determined bootstrap weights, akin to what is created from survey::bootweights?
My goal is to resample clusters (which amounts to a mixture of replacement and non-replacement sampling) and I was curious if the weights argument might be able to help with this. But before I can figure that out, I need to know what input "weights" is expecting.
I'd appreciate any insight, thanks.
Jonathan