EVOLUTION-MANAGER
Edit File: align.time.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Align seconds, minutes, and hours to beginning of next...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for align.time {xts}"><tr><td>align.time {xts}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Align seconds, minutes, and hours to beginning of next period. </h2> <h3>Description</h3> <p>Change timestamps to the start of the next period, specified in multiples of seconds. </p> <h3>Usage</h3> <pre> align.time(x, ...) ## S3 method for class 'xts' align.time(x, n=60, ...) shift.time(x, n=60, ...) adj.time(x, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>object to align </p> </td></tr> <tr valign="top"><td><code>n</code></td> <td> <p>number of seconds to adjust by </p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>additional arguments. See details. </p> </td></tr> </table> <h3>Details</h3> <p>This function is an S3 generic. The result is to round up to the next period determined by <code>n modulo x</code>. </p> <h3>Value</h3> <p>A new object of class(x) </p> <h3>Author(s)</h3> <p>Jeffrey A. Ryan with input from Brian Peterson </p> <h3>See Also</h3> <p><code><a href="to.period.html">to.period</a></code> </p> <h3>Examples</h3> <pre> x <- Sys.time() + 1:1000 # every 10 seconds align.time(x, 10) # align to next whole minute align.time(x, 60) # align to next whole 10 min interval align.time(x, 10 * 60) </pre> <hr /><div style="text-align: center;">[Package <em>xts</em> version 0.12.2 <a href="00Index.html">Index</a>]</div> </body></html>