splitAt: Split matrices or numeric vectors at specific indices

View source: R/crossover.R

splitAtR Documentation

Split matrices or numeric vectors at specific indices

Description

The function is used by the crossover method to split a genetic code at certain intervals. See also crossover.

Usage

splitAt(x, pos)

Arguments

x

A numeric variable that represents an individual's binary genetic code

pos

A numeric value that indicates where to split the genetic code

Value

Returns a list of the split genetic code.

See Also

Other Helper Functions: get_grids(), grid_area(), hexa_area(), isSpatial(), permutations(), readinteger(), readintegerSel(), windata_format()

Examples

splitAt(1:100, 20)
splitAt(as.matrix(1:100), 20)


windfarmGA documentation built on April 4, 2025, 3:39 a.m.