setValueInArray: Set a value in an array

Description Usage Arguments

View source: R/javaFunctions.R

Description

This function sets the value at the location given by the index parameter. It relies on the reflexive methods the Java class Array.

Usage

1
setValueInArray(object, value, index = NULL, affinity. = 1)

Arguments

object

a java.object that represents an array

value

the value to be set

index

the index of the location at which the value is set. Note that in Java the first index is 0. If this argument is set to NULL, then it is assumed that the value is set to index 0. In case of vectorization, the values are set from 0 to length(value) - 1 if this argument is left to NULL.

affinity.

an optional parameter for multithreading (see the mclapply.j4r function)


J4R documentation built on July 23, 2020, 9:06 a.m.