check_zeros: A function to check for multiple zeroes in a sample

Usage Arguments Examples

View source: R/check_zeros.R

Usage

1
check_zeros(samples)

Arguments

samples

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (samples)
{
    samples %<>% rowid_to_column()
    bad <- filter(samples, n10 == 0 & n11 == 0)
    good <- setdiff(samples, bad)
    bad %>% mutate(n10 = 0.1, n11 = 0.1) %>% union(good) %>%
        arrange(rowid) %>% select(-rowid)
  }

BriceonWiley/IntegratedLikelihood.R documentation built on Aug. 21, 2020, 11 p.m.