Package: rvec 0.0.7

John Bryant

rvec: Vector Representing a Random Variable

Random vectors, called rvecs. An rvec holds multiple draws, but tries to behave like a standard R vector, including working well in data frames. Rvecs are useful for working with output from a simulation or a Bayesian analysis.

Authors:John Bryant [aut, cre], Bayesian Demography Limited [cph]

rvec_0.0.7.tar.gz
rvec_0.0.7.zip(r-4.5)rvec_0.0.7.zip(r-4.4)rvec_0.0.7.zip(r-4.3)
rvec_0.0.7.tgz(r-4.4-any)rvec_0.0.7.tgz(r-4.3-any)
rvec_0.0.7.tar.gz(r-4.5-noble)rvec_0.0.7.tar.gz(r-4.4-noble)
rvec_0.0.7.tgz(r-4.4-emscripten)rvec_0.0.7.tgz(r-4.3-emscripten)
rvec.pdf |rvec.html
rvec/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/bayesiandemography/rvec/issues

Datasets:
  • divorce - Divorce Rates in New Zealand
  • reg_post - Posterior Sample from Linear Regression

On CRAN:

5.26 score 2 packages 12 scripts 163 downloads 98 exports 14 dependencies

Last updated 1 months agofrom:3287860a53. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 27 2024
R-4.5-winOKOct 27 2024
R-4.5-linuxOKOct 27 2024
R-4.4-winOKOct 27 2024
R-4.4-macOKOct 27 2024
R-4.3-winOKOct 27 2024
R-4.3-macOKOct 27 2024

Exports:as_list_colcollapse_to_rvecdbeta_rvecdbinom_rvecdcauchy_rvecdchisq_rvecdexp_rvecdf_rvecdgamma_rvecdgeom_rvecdhyper_rvecdlnorm_rvecdmultinom_rvecdnbinom_rvecdnorm_rvecdpois_rvecdraws_alldraws_anydraws_cidraws_fundraws_maxdraws_meandraws_mediandraws_mindraws_modedraws_quantiledt_rvecdunif_rvecdweibull_rvecexpand_from_rvecextract_drawif_else_rvecis_rvecmap_rvecn_drawnew_rvecpbeta_rvecpbinom_rvecpcauchy_rvecpchisq_rvecpexp_rvecpf_rvecpgamma_rvecpgeom_rvecphyper_rvecplnorm_rvecpnbinom_rvecpnorm_rvecppois_rvecpt_rvecpunif_rvecpweibull_rvecqbeta_rvecqbinom_rvecqcauchy_rvecqchisq_rvecqexp_rvecqf_rvecqgamma_rvecqgeom_rvecqhyper_rvecqlnorm_rvecqnbinom_rvecqnorm_rvecqpois_rvecqt_rvecqunif_rvecqweibull_rvecrankrbeta_rvecrbinom_rvecrcauchy_rvecrchisq_rvecrexp_rvecrf_rvecrgamma_rvecrgeom_rvecrhyper_rvecrlnorm_rvecrmultinom_rvecrnbinom_rvecrnorm_rvecrpois_rvecrt_rvecrunif_rvecrvecrvec_chrrvec_dblrvec_intrvec_lglrweibull_rvecsdvarweighted_madweighted_meanweighted_medianweighted_sdweighted_var

Dependencies:clifansigluelifecyclemagrittrmatrixStatspillarpkgconfigrlangtibbletidyselectutf8vctrswithr

Package rvec

Rendered fromvig1_overview.Rmdusingknitr::rmarkdownon Oct 27 2024.

Last update: 2023-11-01
Started: 2023-05-12

Readme and manuals

Help Manual

Help pageTopics
Package 'rvec'rvec-package
Convert to List Columnas_list_col as_list_col.matrix as_list_col.rvec
Convert a Data Frame Between 'Database' and 'Rvec' Formatscollapse_to_rvec collapse_to_rvec.data.frame collapse_to_rvec.grouped_df expand_from_rvec expand_from_rvec.data.frame expand_from_rvec.grouped_df
The Beta Distribution, Using Multiple Drawsdbeta_rvec pbeta_rvec qbeta_rvec rbeta_rvec
The Binomial Distribution, Using Multiple Drawsdbinom_rvec pbinom_rvec qbinom_rvec rbinom_rvec
The Cauchy Distribution, Using Multiple Drawsdcauchy_rvec pcauchy_rvec qcauchy_rvec rcauchy_rvec
The Chi-Squared Distribution, Using Multiple Drawsdchisq_rvec pchisq_rvec qchisq_rvec rchisq_rvec
The Exponential Distribution, Using Multiple Drawsdexp_rvec pexp_rvec qexp_rvec rexp_rvec
The F Distribution, Using Multiple Drawsdf_rvec pf_rvec qf_rvec rf_rvec
The Gamma Distribution, Using Multiple Drawsdgamma_rvec pgamma_rvec qgamma_rvec rgamma_rvec
The Geometric Distribution, Using Multiple Drawsdgeom_rvec pgeom_rvec qgeom_rvec rgeom_rvec
The Hypergeometric Distribution, Using Multiple Drawsdhyper_rvec phyper_rvec qhyper_rvec rhyper_rvec
Divorce Rates in New Zealanddivorce
The Log-Normal Distribution, Using Multiple Drawsdlnorm_rvec plnorm_rvec qlnorm_rvec rlnorm_rvec
The Multinomial Distribution, Using Multiple Drawsdmultinom_rvec rmultinom_rvec
The Negative Binomial Distribution, Using Multiple Drawsdnbinom_rvec pnbinom_rvec qnbinom_rvec rnbinom_rvec
The Normal Distribution, Using Multiple Drawsdnorm_rvec pnorm_rvec qnorm_rvec rnorm_rvec
The Poisson Distribution, Using Multiple Drawsdpois_rvec ppois_rvec qpois_rvec rpois_rvec
Logical Operations Across Random Drawsdraws_all draws_all.rvec draws_all.rvec_chr draws_any draws_any.rvec draws_any.rvec_chr
Credible Intervals from Random Drawsdraws_ci draws_ci.rvec draws_ci.rvec_chr
Apply Summary Function Across Random Drawsdraws_fun draws_fun.rvec
Medians, Means, and Modes Across Random Drawsdraws_mean draws_mean.rvec draws_mean.rvec_chr draws_median draws_median.rvec draws_median.rvec_chr draws_mode draws_mode.rvec
Minima and Maxima Across Random Drawsdraws_max draws_max.rvec draws_max.rvec_chr draws_min draws_min.rvec draws_min.rvec_chr
Quantiles Across Random Drawsdraws_quantile draws_quantile.rvec draws_quantile.rvec_chr
Student t Distribution, Using Multiple Drawsdt_rvec pt_rvec qt_rvec rt_rvec
Uniform Distribution, Using Multiple Drawsdunif_rvec punif_rvec qunif_rvec runif_rvec
Weibull Distribution, Using Multiple Drawsdweibull_rvec pweibull_rvec qweibull_rvec rweibull_rvec
Extract a Single Draw From an Rvecextract_draw
Vectorised If-Else, When Condition is an Rvecif_else_rvec
Is an Object an Rvecis_rvec
Apply a Function and Put Results in an Rvecmap_rvec
Matrix Multiplication with RvecsmatrixOps.rvec
Missing, Finite, and Infinite Values in RvecsanyNA.rvec is.na.rvec missing na.exclude.rvec na.omit.rvec
Query Number of Drawsn_draw n_draw.default n_draw.rvec
Create a Blank Rvecnew_rvec
Sample Ranks, Including Rvecsrank
Posterior Sample from Linear Regressionreg_post
Create an Rvec from Datarvec rvec_chr rvec_dbl rvec_int rvec_lgl
Standard Deviation, Including Rvecssd
Correlation, Variance and Covariance (Matrices), Including Rvecsvar
Calculate Weighted Summariesweighted_mad weighted_mad.default weighted_mad.rvec weighted_mean weighted_mean.default weighted_mean.rvec weighted_median weighted_median.default weighted_median.rvec weighted_sd weighted_sd.default weighted_sd.rvec weighted_var weighted_var.default weighted_var.rvec