Learn R Programming

J4R (version 1.0.7)

setValueInArray: Set a value in an array

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

setValueInArray(object, value, index)

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 retrieved. Note that in Java the first index is 0