invert: Invert a chromosome

Description Usage Arguments Value Examples

Description

Takes a binary chromsome as input and flips the ordering

Usage

1
invert(p0)

Arguments

p0

Binary string of 0s and 1s

Value

Returns the reverse of p0

Examples

1
2
3
x <- '001101'
invert(x)
[1] "101100"

tjmassaro/ssga documentation built on May 6, 2019, 7:33 a.m.