Concatenate Row and Column names from Data.Frame

Posted by user338714 on Stack Overflow See other posts from Stack Overflow or by user338714
Published on 2010-05-11T20:45:26Z Indexed on 2010/05/11 20:54 UTC
Read the original article Hit count: 166

Filed under:

Is there a way to concatenate the row and column names from an existing data.frame into a new data frame. For example, I have column names of (A, B, C) and row names of (1, 2, 3) and I would like to combine these into a 3x3 matrix [A1, B1, C1; A2, B2, C2; A2, B2, C2]. Thanks for your help

© Stack Overflow or respective owner

Related posts about r