delete_columns | R Documentation |
The function removes one or more columns from a 'flextable'.
delete_columns(x, j = NULL)
x |
a |
j |
columns selection |
Deleting one or more columns will result in the deletion of any span parameters that may have been set previously. They will have to be redone after this operation or performed only after this deletion.
Other functions for row and column operations in a flextable:
add_body()
,
add_body_row()
,
add_footer()
,
add_footer_lines()
,
add_footer_row()
,
add_header()
,
add_header_row()
,
delete_part()
,
delete_rows()
,
separate_header()
,
set_header_footer_df
,
set_header_labels()
ft <- flextable(head(iris))
ft <- delete_columns(ft, j = "Species")
ft
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.