R thinks you want the names to be "name1" and "name2", just like if I were to create a list with names "a" and "b":

my.list &lt;- list(a=1, b=2)


Try using structure and passing the names as a character vector:

matriu &lt;- matrix(c(e00,e01,e10,e11),nrow = 2, 
                 dimnames = structure(list(c("Disapprove", "Approve"),
                                           c("Disapprove", "Approve")),
                                      names=c(class1, class2)))


Or setting the names of the elements after you create the list:

matriu &lt;- matrix(c(e00,e01,e10,e11),nrow = 2, 
                 dimnames = list(c("Disapprove", "Approve"),
                                 c("Disapprove", "Approve")))
names(dimnames(matriu)) &lt;- c(class1, class2)


Passing a string as function argument
I just messed up using the Gradient Mesh Tool in Adobe Illustrator.

I want to start a brand new Gradient Mesh on the object I messed up on and don't want to delete the original shape. 

How can I remove the existing Gradient Mesh so that I can start a new one from scratch?
