x[i] x[i,j, ...] x[i,j, ..., drop=T] x[[i]] x[[i,j, ...]] x$name
x
is set to the value of the right hand side
of the assignment.
These operators are generic. You can write methods to handle subsetting of specific classes of data.
The [[
operator requires all relavent subscripts be supplied.
With the [
operator a comma separated blank indicates that all
entries in that dimension are selected.
When operating on a list the [[
operator gives the specified
element of the list while the [
operator returns a list with
the specified element(s) in it.