rrandvec
Generate pseudo-random vectors whose elements sum of to one
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.8%) to scientific vocabulary
Keywords
r-package
random-vector
Last synced: 9 months ago
·
JSON representation
Repository
Generate pseudo-random vectors whose elements sum of to one
Basic Info
- Host: GitHub
- Owner: jakobbossek
- License: other
- Language: C++
- Default Branch: main
- Homepage: https://jakobbossek.github.io/rrandvec
- Size: 1.37 MB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
r-package
random-vector
Created about 5 years ago
· Last pushed about 3 years ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
# rrandvec: Random Vectors that sum up to one
**Visit the [package website](https://jakobbossek.github.io/rrandvec/).**
[](https://github.com/jakobbossek/rrandvec/actions)
[](https://CRAN.R-project.org/package=rrandvec)
[](https://CRAN.R-project.org/package=rrandvec)
[](https://CRAN.R-project.org/package=rrandvec)
[](https://app.codecov.io/gh/jakobbossek/rrandvec?branch=main)
## What is this all about?
Offers a single method to generate random vectors whose components sum of to one. Several methods are available. The implementation is done in C++ (via [Rcpp](https://www.rcpp.org)) for performance reasons.
## Installation Instructions
The package can be installed from [CRAN](https://cran.r-project.org). To install the dev-version ufrom github use the [devtools](https://github.com/r-lib/devtools) package and type the following command in R:
```r
devtools::install_github("jakobbossek/rrandvec")
```
## Example
Assume we aim to generate `n=250` vectors in `d=3` dimensions where the components of each vector follow the same distribution. This can be achieved, e.g., by the following command:
```r
library(rrandvec)
library(scatterplot3d)
x = rrandvec(n = 250, d = 3, method = "exponential")
scatterplot3d(x[, 1:3], angle = 120, pch = 4, color = "blue", cex.symbols = 0.7, xlab = expression(x[1]), ylab = expression(x[2]), zlab = expression(x[3]))
```
## Contact
To report bugs or ask questions please use the [issue tracker](https://github.com/jakobbossek/rrandvec/issues). Pay attention to explain the problem as good as possible. At its best you provide an example, so I can reproduce your problem quickly.
Owner
- Name: Jakob Bossek
- Login: jakobbossek
- Kind: user
- Location: Germany
- Company: RWTH Aachen University
- Website: http://www.jakobbossek.de/
- Twitter: BossekJakob
- Repositories: 58
- Profile: https://github.com/jakobbossek
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 2
- Total pull requests: 0
- Average time to close issues: 6 days
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 1.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- jakobbossek (2)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 185 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: rrandvec
Generate Random Vectors Whose Components Sum Up to One
- Homepage: https://jakobbossek.github.io/rrandvec/
- Documentation: http://cran.r-project.org/web/packages/rrandvec/rrandvec.pdf
- License: BSD_2_clause + file LICENSE
-
Latest release: 1.0.0
published about 3 years ago
Rankings
Dependent packages count: 29.8%
Dependent repos count: 35.4%
Average: 51.6%
Downloads: 89.7%
Maintainers (1)
Last synced:
10 months ago
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/upload-artifact main composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
.github/workflows/pkgdown.yaml
actions
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
.github/workflows/test-coverage.yaml
actions
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
DESCRIPTION
cran
- R >= 3.1.0 depends
- Rcpp * imports
- checkmate * imports
- covr * suggests
- scatterplot3d * suggests
- testthat * suggests