shift: Shift each tuple (or sequence) in a vector for 'k' positions...

View source: R/manip.R

shiftR Documentation

Shift each tuple (or sequence) in a vector for k positions to the left (AUG -> UGA).

Description

Shift each tuple (or sequence) in a vector for k positions to the left (AUG -> UGA).

Usage

shift(tuples, k)

Arguments

tuples

Vector of strings

k

Number of positions. k equal to 0 means no shift. A negative number shifts to the right (AUG -> GAU).

Value

Vector with shifted tuples.


informatik-mannheim/gcat-base documentation built on Nov. 7, 2023, 7:18 a.m.