From e8eed4abda0a2775b39fcdd7429787091bbb7536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul-Christian=20B=C3=BCrkner?= Date: Tue, 21 Feb 2023 14:48:46 +0100 Subject: [PATCH] prepare for release of version 1.4.0 --- DESCRIPTION | 6 +++--- NEWS.md | 2 +- man/rvar_factor.Rd | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index eca36f9e..e6aaad6b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: posterior Title: Tools for Working with Posterior Distributions -Version: 1.3.1.9000 -Date: 2022-09-06 +Version: 1.4.0 +Date: 2023-02-21 Authors@R: c(person("Paul-Christian", "Bürkner", email = "paul.buerkner@gmail.com", role = c("aut", "cre")), person("Jonah", "Gabry", email = "jsg2201@columbia.edu", role = c("aut")), person("Matthew", "Kay", email = "mjskay@northwestern.edu", role = c("aut")), @@ -54,5 +54,5 @@ LazyData: false URL: https://mc-stan.org/posterior/, https://discourse.mc-stan.org/ BugReports: https://github.com/stan-dev/posterior/issues Roxygen: list(markdown = TRUE) -RoxygenNote: 7.2.2 +RoxygenNote: 7.2.3 VignetteBuilder: knitr diff --git a/NEWS.md b/NEWS.md index 6f8f6c18..7a8c9bb1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# posterior 1.3.1.9000 +# posterior 1.4.0 ### Enhancements diff --git a/man/rvar_factor.Rd b/man/rvar_factor.Rd index 50e4fd7b..92ea056b 100644 --- a/man/rvar_factor.Rd +++ b/man/rvar_factor.Rd @@ -127,13 +127,13 @@ rvar_ordered(x_array, levels = c("d","c","b","a")) # Unlike base factors, rvar factors can be matrices or arrays: rvar_factor(x_array, dim = c(2, 2)) -# If the input to rvar() is an array with a `"levels"` attribute, it -# will automatically be treated as an `rvar_factor()`: +# If the input to rvar_factor() is an array with a `"levels"` attribute, it +# will use those as the levels of the factor y_array <- t(array(rbinom(3000, 1, c(0.1, 0.5, 0.9)) + 1, dim = c(3, 1000))) rvar(y_array) # with levels attr(y_array, "levels") = c("a", "b") -rvar(y_array) +rvar_factor(y_array) } \seealso{