sbst2chr: Convert a subset to a chromosome

Description Usage Arguments Value Examples

Description

Takes a vector of indices and converts it to a chromosome

Usage

1
sbst2chr(sbst, k)

Arguments

sbst

A vector of indices

k

The desired length of the chromosome

Value

Returns a binary string of length k corresponding to which features are present or absent in the model

Examples

1
2
3
4
x <- c(1, 2, 5, 7)
k <- 9
sbst2chr(x, k)
[1] "110010100"

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