I have a symmetrical matrix similar to the following where the elements are characters. I'm trying to find a way to export it as a data frame so that it is numerical and no "NA" is coerced. I also want to keep row names and column names (not indices but the actual names).
MYmatrix<- structure(c("0", "2/10", "2/10", "2/10", "0", "3/10", "2/10",
"3/10", "0"), .Dim = c(3L, 3L), .Dimnames = list(c("t534", "t535",
"t830"), c("t534", "t535", "t830")))
Thanks