0

I am trying to solve this: I have n matrices of different dimensions stored in a List. And, I have a n×1 matrix of n different strings(names).

I want to rename each matrix of the list with names stored in the matrix, so that I can access each object by name.

How can I solve this?

Mithilesh Kumar
  • 256
  • 1
  • 3
  • 18
  • 1
    Anything you've already tried? Hint: look at `?names`. Anything else is hard to answer without a [reproducible example](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) – Heroka Oct 29 '15 at 18:13

1 Answers1

1

names(your_list) = your_matrix[ , 'matrix_col_name']

Hillary Sanders
  • 5,778
  • 10
  • 33
  • 50