Skip to content

Commit

Permalink
Added conda-forge badge
Browse files Browse the repository at this point in the history
  • Loading branch information
marberts committed Feb 20, 2024
1 parent 85a744c commit cc4e5bc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions R/weights.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![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)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions man/factor_weights.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/scale_weights.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/transmute_weights.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc4e5bc

Please sign in to comment.