EVOLUTION-MANAGER
Edit File: rbind.xts.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: Concatenate Two or More xts Objects by Row</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 rbind.xts {xts}"><tr><td>rbind.xts {xts}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Concatenate Two or More xts Objects by Row </h2> <h3>Description</h3> <p>Concatenate or bind by row two or more xts objects along a time-based index. </p> <h3>Usage</h3> <pre> ## S3 method for class 'xts' c(...) ## S3 method for class 'xts' rbind(..., deparse.level = 1) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>...</code></td> <td> <p> objects to bind </p> </td></tr> <tr valign="top"><td><code>deparse.level</code></td> <td> <p> not implemented </p> </td></tr> </table> <h3>Details</h3> <p>Implemented in C, these functions bind <code>xts</code> objects by row, resulting in another <code>xts</code> object </p> <p>There may be non-unique index values in either the original series, or the resultant series. </p> <p>Identical indexed series are bound in the order or the arguments passed to rbind. See examples. </p> <p>All objects must have the same number of columns, as well as be <code>xts</code> objects or coercible to such. </p> <p><code>rbind</code> and <code>c</code> are aliases. </p> <p>For traditional merge operations, see <code>merge.xts</code> and <code>cbind.xts</code>. </p> <h3>Value</h3> <p>An <code>xts</code> object with one row per row for each object concatenated. </p> <h3>Note</h3> <p>This differs from rbind.zoo in that non-unique index values are allowed, in addition to the completely different algorithms used internally. </p> <p>All operations may not behave as expected on objects with non-unique indices. You have been warned. </p> <p><code>rbind</code> is a .Primitive function in <span style="font-family: Courier New, Courier; color: #666666;"><b>R</b></span>. As such method dispatch occurs at the C-level, and may not be consistent with expectations. See the details section of the base function, and if needed call rbind.xts directly to avoid dispatch ambiguity. </p> <h3>Author(s)</h3> <p> Jeffrey A. Ryan </p> <h3>See Also</h3> <p><code><a href="merge.html">merge.xts</a></code> <code><a href="../../base/html/cbind.html">rbind</a></code> </p> <h3>Examples</h3> <pre> x <- xts(1:10, Sys.Date()+1:10) str(x) merge(x,x) rbind(x,x) rbind(x[1:5],x[6:10]) c(x,x) # this also works on non-unique index values x <- xts(rep(1,5), Sys.Date()+c(1,2,2,2,3)) y <- xts(rep(2,3), Sys.Date()+c(1,2,3)) # overlapping indexes are appended rbind(x,y) rbind(y,x) </pre> <hr /><div style="text-align: center;">[Package <em>xts</em> version 0.12.2 <a href="00Index.html">Index</a>]</div> </body></html>