R: rownames, colnames, dimnames and names in apply
问题 I would like to use apply to run across the rows of a matrix, and I would like to use the rowname of the current row in my function. It seems you can't use rownames , colnames , dimnames or names directly inside the function. I am aware that I can probably create a workaround based on information in this question. But my question is how does apply handle row and column names of the array in it's first argument, and the assignment of names to objects created inside the function called by apply