posgen: posgen

Description Usage Arguments Author(s) See Also Examples

View source: R/posgen.R

Description

This function constructs a sliding window matrix based on a SNP position vector

Usage

1
posgen(pos, wlen = 50, start.by = 1, end.by = NULL)

Arguments

pos

position vector

wlen

number of positions per window [default: 50]

start.by

optional start position [default: 1]

end.by

optional end position [default: NULL]

Author(s)

Kristian K Ullrich

See Also

swgen, biSites, triSites

Examples

1
sw <- posgen(seq(1, 975, by = 5), 50, 1, 1000)

kullrich/distIUPAC documentation built on Jan. 9, 2020, 2:50 p.m.