splitAt {windfarmGA} | R 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)
[Package windfarmGA version 4.0.0 Index]