BioStringNewValues {Biostrings}R Documentation

generic to do create an object suitable for the values slot of "BioStrings" class

Description

This generic creates an external vector object that contains (in its tag field) an R vector (of type either INTSXP or CHARSXP) of the given length. The actual type is determined according to the size of the alphabet.

Usage

BioStringNewValues(alphabet, length.string)

Arguments

alphabet An object of class "BioAlphabet"
length.string An integer, the length of the storage in the result

Value

An external pointer.

Author(s)

Saikat DebRoy

See Also

BioString-class for the class which uses this generic during its initialization and BioAlphabet-class for the class of the alphabet parameter.

Examples

BioStringNewValues(DNAAlphabet(), 0)

[Package Biostrings version 1.0.0 Index]