jfloat | R Documentation |
Instantiate a java.lang.Float
object with the value specified.
NOTE: this method is useful when one has to invoke a Java/Scala method
requiring a float (instead of double) type for at least one of its
parameters.
jfloat(sc, x)
sc |
A |
x |
A numeric value in R. |
sc <- spark_connect(master = "spark://HOST:PORT")
jflt <- jfloat(sc, 1.23e-8)
# jflt is now a reference to a java.lang.Float object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.