ShortRead (version 1.30.0)

Utilites: Utilities for common, simple operations

Description

These functions perform a variety of simple operations.

Usage

polyn(nucleotides, n)

Arguments

nucleotides
A character vector with all elements having exactly 1 character, typically from the IUPAC alphabet.
n
An integer(1) vector.

Value

polyn returns a character vector of length length(nucleotide)

Details

polyn returns a character vector with each element having n characters. Each element contains a single nucleotide. Thus polyn("A", 5) returns AAAAA.

Examples

Run this code
polyn(c("A", "N"), 35)

Run the code above in your browser using DataLab