Skip to content
Prev 308015 / 398502 Next

Referring to matrix elements by name, iteratively

On 15-10-2012, at 19:57, AHJ wrote:

            
Turn cwaves into a vector of characters:

cwaves <- as.character(cwaves)

Now you should be able to index like this: mat[cwaves[4], cwaves[10]]

Berend