Macaulay2 » Documentation
Packages » RInterface » RObject » RObject >> RObject
next | previous | forward | backward | up | index | toc

RObject >> RObject -- bitwise right shift of an R object

Description

Compute the bitwise right shift of an R integer vector, calling R's bitwShiftR.

i1 : x = RObject 12

o1 = [1] 12

o1 : RObject of type integer
i2 : y = RObject 2

o2 = [1] 2

o2 : RObject of type integer
i3 : x << y

o3 = [1] 48

o3 : RObject of type integer
i4 : oo >> y

o4 = [1] 12

o4 : RObject of type integer

One of the operands may be a Macaulay2 object. It will be converted to an RObject before the operation is performed.

i5 : x >> 2

o5 = [1] 3

o5 : RObject of type integer

See also

Ways to use this method:

  • RObject >> RObject -- bitwise right shift of an R object
  • RObject >> Thing
  • Thing >> RObject

The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/RInterface/doc/bitwise.m2:202:0.