Re: [R] Question about a passage in R language

2015-12-11 Thread Bert Gunter
I think we need to consult a lawyer on this one ... :-) ?Extract says that an empty index is "most often used" ... . This is a vague comment on use, **not** an exact specification of what x[] does. The R language manual appears to be out of date or wrong: it specifies that "irrelevant" attributes

[R] Question about a passage in R language

2015-12-11 Thread Sébastien Durier
Hello, In ?Extract, one can read "An empty index selects all values: this is most often used to replace all the entries but keep the attributes" No example is given but if x a vector I interpret this sentence as "x[]". And in fact, all attributes seem to be preserved by this indexing. But in th