EVOLUTION-MANAGER
Edit File: mixed_units.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: Create or convert to a mixed units list-column</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 mixed_units {units}"><tr><td>mixed_units {units}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Create or convert to a mixed units list-column</h2> <h3>Description</h3> <p>Create or convert to a mixed units list-column </p> <h3>Usage</h3> <pre> mixed_units(x, values, ...) ## S3 replacement method for class 'mixed_units' units(x) <- value </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>numeric, or vector of class <code>units</code></p> </td></tr> <tr valign="top"><td><code>values</code></td> <td> <p>character vector with units encodings, or list with symbolic units of class <code>mixed_symbolic_units</code></p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>ignored</p> </td></tr> <tr valign="top"><td><code>value</code></td> <td> <p>see values</p> </td></tr> </table> <h3>Details</h3> <p>if <code>x</code> is of class <code>units</code>, <code>values</code> should be missing or of class <code>mixed_symbolic_units</code>; if <code>x</code> is numeric, <code>values</code> should be a character vector the length of <code>x</code>. </p> <h3>Examples</h3> <pre> a <- 1:4 u <- c("m/s", "km/h", "mg/L", "g") mixed_units(a, u) units(a) = as_units("m/s") mixed_units(a) # converts to mixed representation </pre> <hr /><div style="text-align: center;">[Package <em>units</em> version 0.6-7 <a href="00Index.html">Index</a>]</div> </body></html>