cindex: return ith element on a .NET object (such as an array, list,...

Description Usage Arguments Examples

Description

This operator returns the ith element of an an indexable object.

Usage

1
2
## S3 method for class 'rDotNet'
obj[ith]

Arguments

obj

An object previously created with .cnew()

ith

numerical index into array, list, etc

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

## create instance of an object, using fully qualified class name
obj <- .cnew ("com.stg.math.Model", 1.0, 3.5)

## get the 34th element from this indexable object
element <- obj[34]


## End(Not run)

rDotNet documentation built on May 2, 2019, 8:19 a.m.