R/missToZero.R

Defines functions missToZero

missToZero <- function(x, miss, dim = 1) {
    if (dim == 1) x[miss, ] <- 0
    else x[, miss] <- 0
    x
}

Try the BradleyTerry2 package in your browser

Any scripts or data that you put into this service are public.

BradleyTerry2 documentation built on May 2, 2019, 5:16 p.m.