Description Usage Arguments Details Value Note Author(s) See Also Examples
Utility functions to access bits from numeric values, for the efficient storage of spatial masks.
1 2 3 |
object |
a numeric value |
bit |
the desired bit |
value |
logical value to set bit to |
R uses 32-bit integers, so we can (easily) access 31 binary matrices in each numeric matrix. This is very useful for storing long time-series of spatial masks, required for track-location estimation from archival tags.
A numeric object with the given bit set, or a logical value designating the status of the given bit.
The 32nd bit is harder to access, so we ignore it.
Michael D. Sumner
See Also get.mask
for a higher level access of a mask object
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.