Skip to content
Prev 102762 / 398500 Next

Help with understanding [[]] [] array, list, matrix referencing

I want to thank everyone for their comments and suggestions.  P. Burns' 
S Poetry I think will be a lot of help and I thought it was really 
poetry:).  So will the other references that were provided by I believe 
Mr Kane.  The other replies provided me some great insights.

If I understand R uses the $ and [[]] like java uses the . (dot) 
notation for accessing components of classes and objects.  If the java 
class or object being accessed by the . notation is specifically a list, 
container, vector, or array type you use the element operator which is 
the parenthesis in java but R uses [].

This helps be visualize what I am trying to do if I am correct with my 
interpretation.

Thank all of you so much.
Joe
Thomas Lumley wrote: