nonzero: Finds mapping from indices so that they are mapped to...

Description Usage Arguments Value

Description

Finds mapping from indices so that they are mapped to continuous range where each index has some instances. E.g., if s==c(1,3,4) we obtain mapping p <- c(1,NA,2,3), i.e., p[s]==1:3.

Usage

1
nonzero(s, nbins = max(s), limit = 1)

Arguments

s

List of indices (positive integers)

Value

Mapping as described above.


edahelsinki/cyclesampler documentation built on June 9, 2019, 10:51 a.m.