pos.with.complement: Returns a pos matrix combined with its complement. The matrix...

View source: R/pos_and_ignore.R

pos.with.complementR Documentation

Returns a pos matrix combined with its complement. The matrix has an attribute "complement" which is a logical vector indicating whether a row in the matrix is the original matrix or a complement

Description

Returns a pos matrix combined with its complement. The matrix has an attribute "complement" which is a logical vector indicating whether a row in the matrix is the original matrix or a complement

Usage

pos.with.complement(pos, is.sorted = FALSE, end = NULL)

Examples

## Not run: 
  pos = matrix(c(
    2,2,
    5,8,
    10,10
  ),3,2,byrow=TRUE)
  pos.with.complement(pos)

## End(Not run)

skranz/stringtools documentation built on May 11, 2022, 4:48 a.m.