numbering rows in r code example Example: how to change the numbering of rows in r rownames(dfr) <- 1:nrow(dfr)