EVOLUTION-MANAGER
Edit File: isOrdered.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: Check If A Vector Is Ordered</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 isOrdered {xts}"><tr><td>isOrdered {xts}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Check If A Vector Is Ordered </h2> <h3>Description</h3> <p>Performs check to determine if a vector is strictly increasing, strictly decreasing, not decreasing, or not increasing. </p> <h3>Usage</h3> <pre> isOrdered(x, increasing = TRUE, strictly = TRUE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p> a numeric vector </p> </td></tr> <tr valign="top"><td><code>increasing</code></td> <td> <p> test for increasing/decreasing values </p> </td></tr> <tr valign="top"><td><code>strictly</code></td> <td> <p> are duplicates OK </p> </td></tr> </table> <h3>Details</h3> <p>Designed for internal use with <span class="pkg">xts</span>, this provides highly optimized tests for ordering. </p> <h3>Value</h3> <p>Logical </p> <h3>Author(s)</h3> <p> Jeffrey A. Ryan </p> <h3>See Also</h3> <p><code><a href="../../base/html/is.unsorted.html">is.unsorted</a></code> </p> <h3>Examples</h3> <pre> # strictly increasing isOrdered(1:10, increasing=TRUE) isOrdered(1:10, increasing=FALSE) isOrdered(c(1,1:10), increasing=TRUE) isOrdered(c(1,1:10), increasing=TRUE, strictly=FALSE) # decreasing isOrdered(10:1, increasing=TRUE) isOrdered(10:1, increasing=FALSE) </pre> <hr /><div style="text-align: center;">[Package <em>xts</em> version 0.12.2 <a href="00Index.html">Index</a>]</div> </body></html>