as_table | R Documentation |
Coerces an object to a table of the desired type.
as_table(x, type = data.frame(), stringsAsFactors = FALSE, ...)
x |
Object passed to the corresponding table coercion function. |
type |
Table type (passed to |
stringsAsFactors |
Whether to convert all character columns to factors. |
... |
Arguments passed to the corresponding table coercion function. |
Other Table functions: create_table
,
is_table
, parse_table_type
,
parse_table
, rbind_tables
,
remove_empty_dimensions
,
write_table
x <- list(a = 1, b = 1)
as_table(x)
## Not run:
as_table(x, "data.table")
as_table(x, "tibble")
as_table(x, "tbl_dt")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.