Skip to content
Prev 257612 / 398502 Next

Expanding a VCV Matrix

On 20.04.2011 19:26, Maithula Chandrashekhar wrote:
If Str is like the printed one above rather than the code example, you 
can do:

  mat[Str[Str %in% rownames(mat)], Str[Str %in% colnames(mat)]]

Uwe Ligges