remove_empty_dimensions | R Documentation |
Removes empty rows and columns from a table.
remove_empty_dimensions(x, ignore = NULL)
x |
Table. |
ignore |
Vector of column names to ignore when checking for empty rows. |
Other Table functions: as_table
,
create_table
, is_table
,
parse_table_type
,
parse_table
, rbind_tables
,
write_table
df <- data.frame(x = 1, y = NA)
remove_empty_dimensions(df)
remove_empty_dimensions(df, ignore = "x")
## Not run:
dt <- data.table::data.table(x = 1, y = NA)
remove_empty_dimensions(dt)
remove_empty_dimensions(dt, ignore = "x")
tb <- tibble::tibble(x = 1, y = NA)
remove_empty_dimensions(tb)
remove_empty_dimensions(tb, ignore = "x")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.