The convenience objects are of the form stXY
(where X
is in
{I, D, L, R, S}
and Y
is in {0, 1, 2}
) as as indicated
below:
I
corresponds to Scala's Int
and R's integer
.
D
corresponds to Scala's Double
and R's double
.
L
corresponds to Scala's Boolean
and R's logical
.
R
corresponds to Scala's Byte
and R's raw
.
S
corresponds to Scala's String
and R's character
.
0
corresponds to a Scala primitive and an R length one vector.
1
corresponds to a Scala array and an R vector.
2
corresponds to a Scala array of arrays and an R matrix.
For example, stS2
is equivalent to Scala's
scalaType("Array[Array[String]]")
and R's type for
matrix(character())
. Also, stL1
is equivalent to Scala's
scalaType("Boolean")
and R's type for logical(1)
.