leftmatch: Perumute indices

Description Usage Arguments Value Examples

View source: R/utils_enkpf.R

Description

Used to match particles between local updates. Rearrange indices on the right to match as many as possible on the left... Default for left should be 1:length(rightind)

Usage

1
leftmatch(leftind, rightind)

Arguments

leftind:

indices on the left (reference)

rightind:

indices on the right

Value

the right indices rearranged

Examples

1
2
3
4
leftind <- c(1,2,3,3,3)
rightind<- c(1,3,3,4,5)

leftmatch(leftind, rightind)

robertsy/assimilr documentation built on May 27, 2019, 10:33 a.m.