Description Usage Arguments Value Examples
.CallOctave
calls an Octave function and returns its value.
1 2 | .CallOctave(.NAME, ..., argout = -1, unlist = !is.character(argout),
buffer.std = -1L, verbose = NULL)
|
.NAME |
an Octave function name. The function must be a valid function name in the current Octave session. |
... |
arguments passed to the Octave function |
argout |
the number of output values, or a vector of names to use as output variable names. The names are directly used and applied to the result list in their original order. The default value
|
unlist |
a logical that specifies if an output list of length one
should be simplified and returned as a single value or kept as a list.
The default is to unlist unless output names were passed in |
buffer.std |
logical that indicates if Octave stdout and/or stderr should be buffered.
If
Note that warnings are handle slightly differently than other messages,
as they are never output directly, except when |
verbose |
logical that toggles verbosity (i.e. debug) messages.
If |
the value returned by the Octave function – converted into standard R objects.
1 2 3 4 5 6 7 8 9 10 11 | # data matrix
x <- matrix(1:9, 3)
# call Octave function 'svd': equivalent to [S] = svd(x). See o_help(svd)
.CallOctave('svd', x)
# call Octave function 'svd' asking for 3 output values: [U, S, V] = svd(x)
.CallOctave('svd', x, argout=3)
# call Octave function 'svd' asking for 3 named output values: [U, S, V] = svd(x)
.CallOctave('svd', x, argout=c('U', 'S', 'V'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.