Science Score: 26.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
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Random vectors

Basic Info
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 5
  • Releases: 1
Created about 3 years ago · Last pushed 12 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# rvec 


[![R-CMD-check](https://github.com/bayesiandemography/rvec/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/bayesiandemography/rvec/actions/workflows/R-CMD-check.yaml)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![Codecov test coverage](https://codecov.io/gh/bayesiandemography/rvec/branch/main/graph/badge.svg)](https://app.codecov.io/gh/bayesiandemography/rvec?branch=main)
[![CRAN status](https://www.r-pkg.org/badges/version/rvec)](https://CRAN.R-project.org/package=rvec)


Tools for working with random draws, including draws from a simulation or Bayesian analysis. The main data structure is an `rvec`, which holds multiple draws but which behaves (mainly) like a standard R vector.


## Installation

``` r
install.packages("rvec")                            ## CRAN version
devtools::install_github("bayesiandemography/rvec") ## development version
```

## Example

```{r}
library(rvec, warn.conflicts = FALSE)
library(dplyr, warn.conflicts = FALSE)
```

Create an `rvec`.
```{r}
x <- rvec(rbind(c(10, 11),
                c(100, 101),
                c(1000, 1001)))
x
```

Perform arithmetic on it.
```{r}
x + 1
```

Put it in a tibble.
```{r}
df <- tibble(g = c(1, 2, 1), x)
df
```

Manipulate it in a tibble.
```{r}
df %>%
  group_by(g) %>%
  count(wt = x)
```

Summarise it.
```{r}
draws_mean(x)
```

## Other packages for working with random draws

- [rv](https://CRAN.R-project.org/package=rv)
- [posterior](https://CRAN.R-project.org/package=posterior)

Owner

  • Name: Bayesian Demography Limited
  • Login: bayesiandemography
  • Kind: organization
  • Email: john@bayesiandemography.com
  • Location: New Zealand

Demography for the twenty-first century

GitHub Events

Total
  • Issues event: 9
  • Watch event: 2
  • Issue comment event: 3
  • Push event: 6
Last Year
  • Issues event: 9
  • Watch event: 2
  • Issue comment event: 3
  • Push event: 6

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 6
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 6
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • johnrbryant (20)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 324 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: rvec

Vectors Representing Random Variables

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 324 Last month
Rankings
Dependent packages count: 28.9%
Dependent repos count: 36.9%
Average: 50.8%
Downloads: 86.6%
Maintainers (1)
Last synced: 11 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 4.3.0 depends
  • cli * imports
  • glue * imports
  • grDevices * imports
  • graphics * imports
  • matrixStats * imports
  • methods * imports
  • rlang * imports
  • stats * imports
  • tibble * imports
  • tidyselect * imports
  • utils * imports
  • vctrs * imports
  • bookdown * suggests
  • covr * suggests
  • dplyr * suggests
  • ggdist * suggests
  • ggplot2 * suggests
  • knitr * suggests
  • posterior * suggests
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests
  • tidyr * suggests
  • vdiffr * suggests