# NOT RUN {
## data with row names
d <- data.frame(x = rnorm(5), y = rnorm(5), row.names = letters[1:5])
## convert to tibble
as_tbl_data(d)
## convert to tibble and create row_names variable
as_tbl_data(d, row_names = TRUE)
# }
Run the code above in your browser using DataLab