times-.rscalaBridge: Evaluation Operator

*.rscalaBridgeR Documentation

Evaluation Operator

Description

This operator compiles and executes a snippet of Scala code. All definitions are local to the supplied Scala snippet. Subsequent uses of the same code snippet skips the time-consuming compilation step. The return value is a vector or matrix of R's basic types (if possible) or an rscala reference (otherwise).

Usage

## S3 method for class 'rscalaBridge'
bridge * snippet

Arguments

bridge

A Scala bridge.

snippet

String providing a Scala code snippet.

Value

Returns a vector or matrix of R's basic types (if possible) or an rscala reference (otherwise).

See Also

^.rscalaBridge, +.rscalaBridge, scala

Examples


s <- scala()
s * 'scala.util.Random.nextDouble() <= 0.75'
s(mean=10, sd=2.5) * 'mean + sd * scala.util.Random.nextGaussian()'
close(s)



rscala documentation built on Aug. 15, 2023, 9:07 a.m.