samplezoo
Generate Samples with a Variety of Probability Distributions
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.5%) to scientific vocabulary
Keywords
Repository
Generate Samples with a Variety of Probability Distributions
Basic Info
- Host: GitHub
- Owner: nvietto
- License: other
- Language: R
- Default Branch: main
- Homepage: https://nvietto.github.io/samplezoo/
- Size: 2.22 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
samplezoo 
The {samplezoo} package simplifies the generation of samples from various probability distributions, enabling users to quickly create datasets for demonstrations, troubleshooting, or teaching. By prioritizing simplicity and speed over the customization of sample parameters, {samplezoo} is ideal for beginners or anyone looking to save time when working with data.
Installation
{samplezoo} is available on CRAN. Install using:
r
install.packages("samplezoo")
You can install the development version of samplezoo from GitHub with:
``` r
install.packages("pak")
pak::pak("nvietto/samplezoo") ```
Example
Generating a dataset with various probability distributions typically looks like this:
``` r numericdata <- data.frame( norm = rnorm(n = 100, mean = 50, sd = 15), norm2 = rnorm(n = 100, mean = 60, sd = 10), norm3 = rnorm(n = 100, mean = 40, sd = 20), bern = rbinom(n = 100, size = 1, prob = 0.50), neg = rnbinom(n = 100, size = 1, prob = 0.50), pois = rpois(n = 100, lambda = 3), exp = rexp(n = 100, rate = 0.10), unif = runif(n = 100, min = 0, max = 1), beta = rbeta(n = 100, shape1 = 2, shape2 = 5), gamma = rgamma(n = 100, shape = 2, scale = 2), chisq = rchisq(n = 100, df = 2), tdist = rt(n = 100, df = 10), fdist =rf(n = 100, df1 = 10, df2 = 10) )
numericdata <- round(numericdata, 2)
head(numeric_data) ```
r
norm norm_2 norm_3 bern neg pois exp unif beta gamma chi_sq t_dist f_dist
1 63.81 57.53 7.04 0 2 4 0.75 0.96 0.05 3.12 2.18 1.60 2.24
2 66.55 55.87 32.81 1 0 4 0.62 0.63 0.52 5.61 4.85 0.62 2.51
3 53.37 55.03 54.22 1 8 2 9.68 0.17 0.26 3.74 0.14 0.12 1.06
4 57.02 65.00 29.82 0 0 3 46.11 0.44 0.28 1.72 1.82 -0.19 0.97
5 57.61 76.56 39.52 1 0 2 11.92 0.51 0.27 7.96 0.37 -0.05 2.06
6 52.06 72.36 84.90 0 1 3 2.74 0.19 0.02 2.42 9.40 -0.02 0.65
With {samplezoo}, you can use one line of code:
``` r library(samplezoo)
small_data <- samplezoo("small")
smalldata <- round(smalldata, 2)
head(small_data) ```
r
norm norm_2 norm_3 bern neg pois exp unif beta gamma chi_sq t_dist f_dist
1 59.92 79.47 22.58 0 0 5 5.40 0.97 0.62 10.03 8.26 0.40 1.66
2 51.84 59.95 24.17 0 0 6 0.85 0.56 0.07 0.83 8.05 0.30 1.34
3 32.53 57.29 54.40 1 2 1 1.51 0.33 0.21 3.99 7.48 -0.86 0.53
4 69.13 52.97 44.06 1 0 4 10.04 0.94 0.17 1.45 10.28 1.31 2.33
5 47.54 78.79 51.02 1 1 4 3.34 0.53 0.50 1.44 9.47 1.41 1.76
6 59.90 53.15 49.71 1 0 2 20.85 0.93 0.36 8.23 2.97 -1.55 0.80
Owner
- Name: Nicholas Vietto
- Login: nvietto
- Kind: user
- Website: https://www.nicholasvietto.com/
- Twitter: ViettoNicholas
- Repositories: 1
- Profile: https://github.com/nvietto
PhD Student
GitHub Events
Total
- Create event: 10
- Release event: 4
- Issues event: 14
- Watch event: 1
- Issue comment event: 1
- Push event: 120
Last Year
- Create event: 10
- Release event: 4
- Issues event: 14
- Watch event: 1
- Issue comment event: 1
- Push event: 120
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 3
- Total pull requests: 0
- Average time to close issues: about 1 hour
- Average time to close pull requests: N/A
- Total issue authors: 2
- Total pull request authors: 0
- Average comments per issue: 0.33
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 3
- Pull requests: 0
- Average time to close issues: about 1 hour
- Average time to close pull requests: N/A
- Issue authors: 2
- Pull request authors: 0
- Average comments per issue: 0.33
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- nvietto (6)
- Beliavsky (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 172 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
cran.r-project.org: samplezoo
Generate Samples with a Variety of Probability Distributions
- Homepage: https://github.com/nvietto/samplezoo
- Documentation: http://cran.r-project.org/web/packages/samplezoo/samplezoo.pdf
- License: MIT + file LICENSE
-
Latest release: 1.2.1
published about 1 year ago
Rankings
Maintainers (1)
Dependencies
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite