You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for rcharacter, it's a bit more complicated than it seems. One can limit the potential for distinct values by limiting the alphabet and the length of each string. If those are low enough, it becomes impossible to guarantee uniqueness for a given output size. On the other hand, even with plenty of alphabet and string length to work with, the algorithm has a sample with replacement (to work of all settings of the parameters it needs to) which makes duplication possible for any value of the parameters, maybe unlikely but possible. So we could add a distinct option and let the generator fail when it's not possible to satisfy it, or when the parameter combination make it potentially so.
similar considerations of course for named and rnamed. One can always call make.unique when uniqueness is necessary and the details of the distribution don't matter.
can we set it as an option in generators? Where does it matter?
rcharacter name rnamed rfactor rinteger
?The text was updated successfully, but these errors were encountered: