diff --git a/R/weights.R b/R/weights.R index 9d26ee6..67b7da6 100644 --- a/R/weights.R +++ b/R/weights.R @@ -160,7 +160,7 @@ #' qs <- transmute_weights(-1, 1)(p1 / p0) / p0 #' all.equal(harmonic_mean(p1 / p0), sum(p1 * qs) / sum(p0 * qs)) #' -#' @family weights +#' @family weights functions #' @export transmute_weights <- function(r, s) { r <- as.numeric(r) @@ -336,7 +336,7 @@ nested_transmute2 <- function(r1, r2, s, t = c(1, 1)) { #' arithmetic_mean(x * y, w) > #' arithmetic_mean(x, w) * arithmetic_mean(y, w) #' -#' @family weights +#' @family weights functions #' @export factor_weights <- function(r) { r <- as.numeric(r) @@ -385,7 +385,7 @@ update_weights <- factor_weights(1) #' @examples #' scale_weights(1:5) #' -#' @family weights +#' @family weights functions #' @export scale_weights <- function(x) { x / sum(x, na.rm = TRUE) diff --git a/README.Rmd b/README.Rmd index bf076f2..4e40e14 100644 --- a/README.Rmd +++ b/README.Rmd @@ -17,6 +17,7 @@ knitr::opts_chunk$set( [![CRAN status](https://www.r-pkg.org/badges/version/gpindex)](https://cran.r-project.org/package=gpindex) [![gpindex status badge](https://marberts.r-universe.dev/badges/gpindex)](https://marberts.r-universe.dev) +[![Conda Version](https://img.shields.io/conda/vn/conda-forge/r-gpindex.svg)](https://anaconda.org/conda-forge/r-gpindex) [![R-CMD-check](https://github.com/marberts/gpindex/workflows/R-CMD-check/badge.svg)](https://github.com/marberts/gpindex/actions) [![codecov](https://codecov.io/gh/marberts/gpindex/graph/badge.svg?token=TL7V9QO0BH)](https://codecov.io/gh/marberts/gpindex) [![DOI](https://zenodo.org/badge/261861375.svg)](https://zenodo.org/doi/10.5281/zenodo.10097742) diff --git a/README.md b/README.md index 51859c9..a081569 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ status](https://www.r-pkg.org/badges/version/gpindex)](https://cran.r-project.org/package=gpindex) [![gpindex status badge](https://marberts.r-universe.dev/badges/gpindex)](https://marberts.r-universe.dev) +[![Conda +Version](https://img.shields.io/conda/vn/conda-forge/r-gpindex.svg)](https://anaconda.org/conda-forge/r-gpindex) [![R-CMD-check](https://github.com/marberts/gpindex/workflows/R-CMD-check/badge.svg)](https://github.com/marberts/gpindex/actions) [![codecov](https://codecov.io/gh/marberts/gpindex/graph/badge.svg?token=TL7V9QO0BH)](https://codecov.io/gh/marberts/gpindex) [![DOI](https://zenodo.org/badge/261861375.svg)](https://zenodo.org/doi/10.5281/zenodo.10097742) diff --git a/man/factor_weights.Rd b/man/factor_weights.Rd index ad398cd..64b7167 100644 --- a/man/factor_weights.Rd +++ b/man/factor_weights.Rd @@ -79,8 +79,8 @@ International Monetary Fund. \code{\link[=grouped]{grouped()}} to make these functions operate on grouped data. -Other weights: +Other weights functions: \code{\link{scale_weights}()}, \code{\link{transmute_weights}()} } -\concept{weights} +\concept{weights functions} diff --git a/man/scale_weights.Rd b/man/scale_weights.Rd index 1435ef2..9e2ba54 100644 --- a/man/scale_weights.Rd +++ b/man/scale_weights.Rd @@ -23,8 +23,8 @@ scale_weights(1:5) \seealso{ \code{\link[=grouped]{grouped()}} to make this function applicable to grouped data. -Other weights: +Other weights functions: \code{\link{factor_weights}()}, \code{\link{transmute_weights}()} } -\concept{weights} +\concept{weights functions} diff --git a/man/transmute_weights.Rd b/man/transmute_weights.Rd index 6407289..5a2fc56 100644 --- a/man/transmute_weights.Rd +++ b/man/transmute_weights.Rd @@ -183,8 +183,8 @@ contributions. \code{\link[=grouped]{grouped()}} to make these functions operate on grouped data. -Other weights: +Other weights functions: \code{\link{factor_weights}()}, \code{\link{scale_weights}()} } -\concept{weights} +\concept{weights functions}