This function sets new row names for a given data frame or matrix.
Examples
# Set new row names for a data frame
df <- data.frame(A = c(1, 2, 3), B = c(4, 5, 6))
setRownames(df, c("row1", "row2", "row3"))
#> A B
#> row1 1 4
#> row2 2 5
#> row3 3 6