Adapted directly from the `sample`

help file.

`resampleZeroProof`

is a version that works even if sum of all probabilities passed to
`sample.int`

is zero. This causes an error in `sample.int`

. This function is
intended for internal use only.

1 2 3 | ```
resample(x, ...)
resampleZeroProof(spreadProbHas0, x, n, prob)
``` |

`x` |
either a vector of one or more elements from which to choose, or a positive integer. See ‘Details.’ |

`...` |
Passed to |

`spreadProbHas0` |
/ogical. Does |

`n` |
a positive number, the number of items to choose from. See ‘Details.’ |

`prob` |
a vector of probability weights for obtaining the elements of the vector being sampled. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.