Get rid of row names in R

Yesterday I had to remind myself on how to remove the row names in a data.frame. Row names are usually added by filtering steps such as subset, etc.

Assume we want to remove the row names of the data.frame called data, we can type:

rownames(data) <- c()

That’s it
iss