When you specify prob and other arguments referring to the prob of sampling clusters / prob within strata or blocks, you are required to provide a vector that is shorter than the dataset. This makes things complex in a tidy framework and, for related reasons, with DeclareDesign. Can it just take the probs / etc. for the full dataset, with repeated values? Then you don't have to worry about ordering the numbers in the same way.
If you want to keep your functionality, it could accept of length 1, n_clusters, and N.
When you specify prob and other arguments referring to the prob of sampling clusters / prob within strata or blocks, you are required to provide a vector that is shorter than the dataset. This makes things complex in a tidy framework and, for related reasons, with DeclareDesign. Can it just take the probs / etc. for the full dataset, with repeated values? Then you don't have to worry about ordering the numbers in the same way.
If you want to keep your functionality, it could accept of length 1, n_clusters, and N.