jarray | R Documentation |
Given a list of Java object references, instantiate an Array[T]
containing the same list of references, where T
is a non-primitive
type that is more specific than java.lang.Object
.
jarray(sc, x, element_type)
sc |
A |
x |
A list of Java object references. |
element_type |
A valid Java class name representing the generic type
parameter of the Java array to be instantiated. Each element of |
sc <- spark_connect(master = "spark://HOST:PORT")
string_arr <- jarray(sc, letters, element_type = "java.lang.String")
# string_arr is now a reference to an array of type String[]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.