Description Usage Arguments Details Value Author(s) See Also Examples

Operators acting on `bit`

or `bitwhich`

objects to extract or replace parts.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ```
## S3 method for class 'bit'
x[[i]]
## S3 replacement method for class 'bit'
x[[i]] <- value
## S3 method for class 'bit'
x[i]
## S3 replacement method for class 'bit'
x[i] <- value
## S3 method for class 'bitwhich'
x[[i]]
## S3 replacement method for class 'bitwhich'
x[[i]] <- value
## S3 method for class 'bitwhich'
x[i]
## S3 replacement method for class 'bitwhich'
x[i] <- value
``` |

`x` |
a |

`i` |
preferrably a positive integer subscript or a |

`value` |
new logical or integer values |

The typical usecase for for '[' and '[<-' is subscripting with positive integers,
negative integers are allowed but slower,
as logical subscripts only scalars are allowed.
The subscript can be given as a `bitwhich`

object.
Also `ri`

can be used as subscript.

Extracting from `bit`

and `bitwhich`

is faster than from `logical`

if positive subscripts are used.
integer subscripts make sense. Negative subscripts are converted to
positive ones, beware the RAM consumption.

The extractors `[[`

and `[`

return a logical scalar or
vector. The replacment functions return an object of `class(x)`

.

Jens OehlschlĂ¤gel

1 2 3 4 5 6 7 8 9 10 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.