window.rats | R Documentation |
Subsets rats by time Intervals always include the 'start' and exclude the 'end' values. Windows can alternatively be specified through start, end, or one among start and end and a duration.
## S3 method for class 'rats'
window(x, start, end, duration)
x |
|
start |
numeric. Start of the window |
end |
numeric. End of the window |
duration |
numeric. The duration of the window. |
a subset rats object
x = rats(1:100, start=0, frequency = 10)
window(x, start=2, duration=2)
#Replace values within a window
window(x, start=0.21, end=0.5) = 99
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.