tt | R Documentation |
Function from data.table.
tt(x, colnames_to_columm, column_to_colnames, ...) ## Default S3 method: tt(x, colnames_to_columm, column_to_colnames, ...) ## S3 method for class 'tbl_df' tt(x, colnames_to_columm = "col_id", column_to_colnames = 1, ...) ## S3 method for class 'data.table' tt(x, colnames_to_columm = "col_id", column_to_colnames = 1, ...)
x |
an tibble or data.table |
colnames_to_columm |
The name of the first column in the result containing the colnames of the input. |
column_to_colnames |
The name or number of a column in the input to use as colnames of the output. |
... |
Others params from |
a transpose tibble
a transpose data.table
tibble::as_tibble(mtcars, rownames = "row_id") %>% tt() tibble::as_tibble(mtcars, rownames = "row_id") %>% tt() %>% tt() tibble::as_tibble(mtcars, rownames = "row_id") %>% data.table::as.data.table() %>% tt()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.