create_genotypeFrame: This is a convenience function to ensure that we have a...

Description Usage Arguments Value Examples

View source: R/sourceSHAPE.R

Description

This is a convenience function to ensure that we have a standard shaped data.frame. It is used to initiate a new table for the fitness landscape.

Usage

1
create_genotypeFrame(tmpID, tmpStrings, tmpFitnesses)

Arguments

tmpID

A numeric vector of the unqiue identifiers for genotypes

tmpStrings

A vector of the character strings that represent the binary string of genotypes

tmpFitnesses

A vector of the numeric fitness values to be input

Value

A 4 column data frame with column names of genotypeID, binaryString, fitness, isExplored

Examples

1
2
3
# This is just a convenience function for outputting vectors in a data.frame with
# standard named columns.
create_genotypeFrame(c(1,10,50),c("1","1_7","6_12"),c(1,0.25,1.57))

rSHAPE documentation built on July 19, 2019, 5:05 p.m.