within_range | R Documentation |
within_range
works well for testing Unix time too.
within_range(x, start, end)
x |
Numeric vector to test. |
start |
Start of range. |
end |
End of range. |
Logical vector of length of x
.
Stuart K. Grange
which
# Test a single range
within_range(1:10, 8, 9)
# Test many ranges
within_range(1:100, c(1, 5), c(2, 9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.