delete_columns {flextable} | R Documentation |
Delete flextable columns
Description
The function removes one or more columns from a 'flextable'.
Usage
delete_columns(x, j = NULL)
Arguments
x |
a |
j |
columns selection |
Details
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.
See Also
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()
Examples
ft <- flextable(head(iris))
ft <- delete_columns(ft, j = "Species")
ft
[Package flextable version 0.9.6 Index]