get matrix row name r

# Assuming you have a matrix named 'my_matrix'
# Get the row names of the matrix
row_names <- rownames(my_matrix)