Learn R Programming

RcppOctave (version 0.18.1)

o_identity: Octave Identity Function

Description

This function calls the Octave function provided by the module shipped with RcppOctave. It Returns its arguments unchanged, and is mainly used to test and check the effect of object conversions between R and Octave.

Usage

o_identity(...)

Arguments

...
any R object supported by RcppOctave.

Value

its argument -- list -- after its conversion from R to Octave and from Octave to R.

Examples

Run this code


o_identity(1L)
o_identity(1:10)
o_identity(matrix(1:10, 2,5))

o_identity(1)
o_identity(runif(10))
o_identity(matrix(runif(10), 2,5))

Run the code above in your browser using DataLab