EVOLUTION-MANAGER
Edit File: getBitIndicators.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: Operate on bit fields</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 getBitIndicators {RCurl}"><tr><td>getBitIndicators {RCurl}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Operate on bit fields</h2> <h3>Description</h3> <p>The <code>getBitIndicators</code> function decompose a value into its respective bit components. The <code>setBitIndicators</code> combines individual components into a single number to "set" a bit field value. </p> <h3>Usage</h3> <pre> getBitIndicators(val, defs) setBitIndicators(vals, defs) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>val</code></td> <td> <p>the value to break up into the bit field components.</p> </td></tr> <tr valign="top"><td><code>defs</code></td> <td> <p>the named integer vector that defines the bit field elements.</p> </td></tr> <tr valign="top"><td><code>vals</code></td> <td> <p>the individual components that are to be combined into a single integer value representing the collection of components. These can be given as names or integer values that correspond to the elements in the defs, either by name or value. </p> </td></tr> </table> <h3>Value</h3> <p><code>getBitIndicators</code> returns a named integer vector representing the components of the bit field in the value. The names of the vector give the symbolic elements that were set in the value. </p> <p><code>setBitIndicators</code> returns a single integer value representing the value from combining the different components (e.g. ORing the bits of the different values). </p> <h3>Author(s)</h3> <p>Duncan Temple Lang</p> <h3>References</h3> <p>Curl homepage <a href="http://curl.haxx.se">http://curl.haxx.se</a></p> <h3>See Also</h3> <p>The features field in <code><a href="curlVersion.html">curlVersion</a></code>. </p> <h3>Examples</h3> <pre> getBitIndicators(7, c(A = 1, B = 2, C = 4)) getBitIndicators(3, c(A = 1, B = 2, C = 4)) getBitIndicators(5, c(A = 1, B = 2, C = 4)) </pre> <hr /><div style="text-align: center;">[Package <em>RCurl</em> version 1.98-1.2 <a href="00Index.html">Index</a>]</div> </body></html>