create_genotypeFrame {rSHAPE}R Documentation

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.

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

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

# 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))

[Package rSHAPE version 0.3.2 Index]