Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

unbound

Sequence Generation from a Bounds Vector


Description

Generate a sequence of consecutive numbers from a bounds vector.

Usage

unbound(start, end = NULL)

Arguments

start

vector of starting values, or a matrix containing starting and end values such as that obtained from bounds.

end

vector of (maximal) end values, such as that obtained from bounds.

Details

This is a simple utility function that does the opposite of the bounds function. If start is a vector, end must be a vector having the same length as start. If start is a matrix with column names contain 'start' and 'end', such as that returned from bounds, end can be skipped and both starting and end values will be extracted from start.

Value

Returns a numeric sequence vector.

Author(s)

Barry Grant

References

Grant, B.J. et al. (2006) Bioinformatics 22, 2695–2696.

See Also

Examples

test <- c(seq(1,5,1),8,seq(10,15,1))
b <- bounds(test)
unbound(b)

bio3d

Biological Structure Analysis

v2.4-2
GPL (>= 2)
Authors
Barry Grant [aut, cre], Xin-Qiu Yao [aut], Lars Skjaerven [aut], Julien Ide [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.