Learn R Programming

RcppOctave (version 0.9.5)

.O: Direct Interface to Octave

Description

RcppOctave provides a simple interface to Octave via the object .O, an instance of class Octave, that allows for direct access to Octave functions and variables using calls such as: .O$svd(matrix(1:9,3)).

Usage

.O

## S3 method for class 'Octave': $(x, name)

## S3 method for class 'Octave': [[(x, i, exact = TRUE)

## S3 method for class 'Octave': $(x, name) <- value

Arguments

exact
logical not used.
x
object from which to extract element(s) or in which to replace element(s).
name
A literal character string or a name (possibly backtick quoted). For extraction, this is normally (see under Environments) partially matched to the
i
indices specifying elements to extract or replace. Indices are numeric or character vectors or empty (missing) or NULL. Numeric values are coerced to integer as by a
value
typically an array-like Robject of a similar class as x.

format

.O is an object of class Octave.

See Also

o_get

o_get

Examples

Run this code
.O
# assign/get Octave variables
.O$a <- 10
.O$a

# call Octave functions
.O$help()
.O$svd(matrix(runif(9), 3))

Run the code above in your browser using DataLab