Description Usage Arguments Value See Also Examples

This function takes a stratified sample without replacement from a data set.

1 | ```
stratsample(strata, counts)
``` |

`strata` |
Vector of stratum identifiers; will be coerced to character |

`counts` |
named vector of stratum sample sizes, with names corresponding to the values of |

vector of indices into `strata`

giving the sample

The "sampling" package has many more sampling algorithms.

1 2 3 |

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.