SignedIndexList {BioQC}R Documentation

Convert a list into a SignedIndexList

Description

Convert a list into a SignedIndexList

Usage

SignedIndexList(object, ...)

## S4 method for signature 'list'
SignedIndexList(object, keepNA = FALSE, keepDup = FALSE,
  offset = 1L)

Arguments

object

A list of atleast one list of atleast one list or Vector called either 'pos' or 'neg'

...

additional arguments, currently none are used

keepNA

Logical, whether NA indices should be kept or not. Default: FALSE (removed)

keepDup

Logical, whether duplicated indices should be kept or not. Default: FALSE (removed)

offset

offset; 1 if missing

Value

A SignedIndexList of lists (named like the second list-level of the input) containing two vectors named 'positive' and 'negative', which contain the same Argumetns as the IndexList resulting of the 'pos' and 'neg' lists or vectors of the input.

Examples

myList <- list(a = list(pos = list(1, 2, 2, 4), neg = c(TRUE, FALSE, TRUE)), 
b = list(NA), c = list(pos = c(c(2, 3), c(1, 3))))
SignedIndexList(myList)

[Package BioQC version 1.10.0 Index]