splitAt: Split matrices or numeric vectors at specific indices

Description Usage Arguments Value See Also Examples

View source: R/crossover.R

Description

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

Usage

1
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: dup_coords(), getDEM(), getISO3(), get_grids(), grid_area(), hexa_area(), isSpatial(), permutations(), readintegerSel(), readinteger(), windata_format()

Examples

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

windfarmGA documentation built on May 5, 2021, 5:08 p.m.