Skip to content
Prev 386644 / 398502 Next

Problem in cluster sampling: 'mixed with negative subscripts'

More accurately, in x[i] where x and i are simple vectors,
i may be a mix of positive integers and zeros
  where the zeros contribute nothing to the result
or it may be a MIX of negative integers and zeros
  where the zeros contribute nothing to the result
  and -k means "do not include element k".
It would be nice to write things like
  x[c(-1,1)]
meaning to copy everything except element 1, then
element 1.  But that is not allowed.
On Sun, 20 Dec 2020 at 10:20, Jim Lemon <drjimlemon at gmail.com> wrote: