Package: whSample 0.9.6.2

whSample: Utilities for Sampling

Interactive tools for generating random samples. Users select an .xlsx, .csv, or delimited .txt file with population data and are walked through selecting the sample type (Simple Random Sample or Stratified), the number of backups desired, and a "stratify_on" value (if desired). The sample size is determined using a normal approximation to the hypergeometric distribution based on Nicholson (1956) <doi:10.1214/aoms/1177728270>. An .xlsx file is created with the sample and key metadata for reference. It is menu-driven and lets users pick an output directory. See vignettes for a detailed walk-through.

Authors:Paul West [aut, cre]

whSample_0.9.6.2.tar.gz
whSample_0.9.6.2.zip(r-4.5)whSample_0.9.6.2.zip(r-4.4)whSample_0.9.6.2.zip(r-4.3)
whSample_0.9.6.2.tgz(r-4.5-any)whSample_0.9.6.2.tgz(r-4.4-any)whSample_0.9.6.2.tgz(r-4.3-any)
whSample_0.9.6.2.tar.gz(r-4.5-noble)whSample_0.9.6.2.tar.gz(r-4.4-noble)
whSample_0.9.6.2.tgz(r-4.4-emscripten)whSample_0.9.6.2.tgz(r-4.3-emscripten)
whSample.pdf |whSample.html
whSample/json (API)

# Install 'whSample' in R:
install.packages('whSample', repos = c('https://km4ivi.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/km4ivi/whsample/issues

On CRAN:

4.00 score 5 scripts 265 downloads 2 exports 24 dependencies

Last updated 4 years agofrom:204a326ed6. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 16 2025
R-4.5-winOKFeb 16 2025
R-4.5-macOKFeb 16 2025
R-4.5-linuxOKFeb 16 2025
R-4.4-winOKFeb 16 2025
R-4.4-macOKFeb 16 2025
R-4.3-winOKFeb 16 2025
R-4.3-macOKFeb 16 2025

Exports:samplerssize

Dependencies:bitbit64clidata.tabledplyrfansigenericsgluelifecyclemagrittropenxlsxpillarpkgconfigpurrrR6Rcpprlangstringitibbletidyselectutf8vctrswithrzip

Creating samples with sampler

Rendered fromUsing_sampler.Rmdusingknitr::rmarkdownon Feb 16 2025.

Last update: 2021-05-13
Started: 2020-08-09

Determining sample sizes with ssize

Rendered fromUsing_ssize.Rmdusingknitr::rmarkdownon Feb 16 2025.

Last update: 2020-08-09
Started: 2020-08-09