Description Usage Arguments Value See Also Examples
Transform an R object (mostly matrix or data.frame) into a cell_df
for further processing in other tidycells
functions.
1 | as_cell_df(d, take_row_names = FALSE, take_col_names = FALSE)
|
d |
the data (either a matrix with column name or a data.frame) |
take_row_names |
consider row names as separate cells
(applicable only for data with no (row, col) information). Default is |
take_col_names |
consider column names as separate cells
(applicable only for data with no (row, col) information). Default is |
An object of class cell_df
.
Note: After this, you may like to do Value Attribute Classification
.
validate_cells
which is used to validate cell_df
.
as_cells
from unpivotr
package.
1 2 3 4 5 6 7 8 9 | as_cell_df(iris)
# consider column name as cell
as_cell_df(iris, take_col_names = TRUE)
# if the data is already in a similar format it will not further transform
# which is not true for ---> unpivotr::as_cells
# check ---> unpivotr::as_cells(iris) %>% unpivotr::as_cells()
unpivotr::as_cells(iris) %>% as_cell_df()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.