Description Usage Arguments Examples
Converts data objects to tibbles.
1 | as_tbl_data(x, row_names = FALSE)
|
x |
Data frame or data frame-like input. |
row_names |
Logical indicating whether to convert non-null row names into the first column. |
1 2 3 4 5 6 7 8 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.