prepend.row.names and convert from matrix