Skip to content
Prev 6962 / 63468 Next

Bug in "[<-.matrix"? (Was: Feature Request: "matrix[1:10,1:10, block=F] <- 1:10")

On Wed, 20 Feb 2002, Warnes, Gregory R wrote:

            
It's as documented.  Take a look at e.g. the description of indexing
in Venables & Ripley.  You can use match() to turn names into numbers.
It is possible to use a matrix of integers as an index ...

S throws an error in your example, and perhaps R should too.  But not
giving errors when used in undocumented ways is not a bug.