EVOLUTION-MANAGER
Edit File: xtsAttributes.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: Extract and Replace xts Attributes</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 xtsAttributes {xts}"><tr><td>xtsAttributes {xts}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Extract and Replace xts Attributes </h2> <h3>Description</h3> <p>Extract and replace non-core <code>xts</code> attributes. </p> <h3>Usage</h3> <pre> xtsAttributes(x, user=NULL) xtsAttributes(x) <- value </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p> an xts object </p> </td></tr> <tr valign="top"><td><code>user</code></td> <td> <p> logical; should user-defined attributes be returned? The default of <code>NULL</code> returns all <code>xts</code> attributes. </p> </td></tr> <tr valign="top"><td><code>value</code></td> <td> <p> a list of new name=value attributes </p> </td></tr> </table> <h3>Details</h3> <p>Since <code>xts</code> objects are S3 objects with special attributes, a method is necessary to properly assign and view the user-added attributes. </p> <p>A call to <code>attributes</code> from the <span class="pkg">base</span> package will return all attributes, including those specific to the <code>xts</code> class. </p> <h3>Value</h3> <p>A named list of user settable attributes. </p> <h3>Author(s)</h3> <p> Jeffrey A. Ryan </p> <h3>See Also</h3> <p><code><a href="../../base/html/attributes.html">attributes</a></code></p> <h3>Examples</h3> <pre> x <- xts(matrix(1:(9*6),nc=6), order.by=as.Date(13000,origin="1970-01-01")+1:9, a1='my attribute') xtsAttributes(x) xtsAttributes(x) <- list(a2=2020) xtsAttributes(x) xtsAttributes(x) <- list(a1=NULL) xtsAttributes(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>