Description

Sets the row names of a data frame to 1,2,3,4,...

R Code

data(mtcars)

##Output
rownames(mtcars) <-1:dim(mtcars)[1]