|
40 | 40 | #' ) |
41 | 41 | #' ft |
42 | 42 | #' @export |
43 | | -#' @family functions for row and column operations in a flextable |
| 43 | +#' @family table_structure |
44 | 44 | set_header_labels <- function(x, ..., values = NULL) { |
45 | 45 | if (!inherits(x, "flextable")) { |
46 | 46 | stop(sprintf("Function `%s` supports only flextable objects.", "set_header_labels()")) |
@@ -105,7 +105,7 @@ set_header_labels <- function(x, ..., values = NULL) { |
105 | 105 | #' the flextable, i.e. an header, footer or the body. |
106 | 106 | #' |
107 | 107 | #' @inheritParams args_x_part_no_all |
108 | | -#' @family functions for row and column operations in a flextable |
| 108 | +#' @family table_structure |
109 | 109 | #' @examples |
110 | 110 | #' ft <- flextable(head(iris)) |
111 | 111 | #' ft <- delete_part(x = ft, part = "header") |
@@ -156,7 +156,7 @@ delete_rows_from_part <- function(x, i) { |
156 | 156 |
|
157 | 157 | #' @export |
158 | 158 | #' @title Delete flextable rows |
159 | | -#' |
| 159 | +#' @family table_structure |
160 | 160 | #' @description The function removes one or more rows |
161 | 161 | #' from a 'flextable'. |
162 | 162 | #' @details |
@@ -235,7 +235,7 @@ delete_colums_from_part <- function(x, j) { |
235 | 235 | #' They will have to be redone after this operation or |
236 | 236 | #' performed only after this deletion. |
237 | 237 | #' @inheritParams args_x_j |
238 | | -#' @family functions for row and column operations in a flextable |
| 238 | +#' @family table_structure |
239 | 239 | #' @examples |
240 | 240 | #' ft <- flextable(head(iris)) |
241 | 241 | #' ft <- delete_columns(ft, j = "Species") |
@@ -355,7 +355,7 @@ add_rows_to_tabpart <- function(x, rows, first = FALSE) { |
355 | 355 | #' |
356 | 356 | #' ft <- theme_booktabs(ft) |
357 | 357 | #' ft |
358 | | -#' @family functions for row and column operations in a flextable |
| 358 | +#' @family table_structure |
359 | 359 | #' @seealso [flextable()] |
360 | 360 | add_body <- function(x, top = TRUE, ..., values = NULL) { |
361 | 361 | if (!inherits(x, "flextable")) { |
@@ -410,7 +410,7 @@ add_body <- function(x, top = TRUE, ..., values = NULL) { |
410 | 410 | #' ft_1 <- theme_booktabs(ft_1, bold_header = TRUE) |
411 | 411 | #' ft_1 <- align(ft_1, align = "center", part = "all") |
412 | 412 | #' ft_1 |
413 | | -#' @family functions for row and column operations in a flextable |
| 413 | +#' @family table_structure |
414 | 414 | add_header <- function(x, top = TRUE, ..., values = NULL) { |
415 | 415 | if (!inherits(x, "flextable")) { |
416 | 416 | stop(sprintf("Function `%s` supports only flextable objects.", "add_header()")) |
@@ -452,7 +452,7 @@ add_header <- function(x, top = TRUE, ..., values = NULL) { |
452 | 452 | #' ) |
453 | 453 | #' ft <- align(ft, part = "footer", align = "right", j = 1:4) |
454 | 454 | #' ft |
455 | | -#' @family functions for row and column operations in a flextable |
| 455 | +#' @family table_structure |
456 | 456 | add_footer <- function(x, top = TRUE, ..., values = NULL) { |
457 | 457 | if (!inherits(x, "flextable")) { |
458 | 458 | stop(sprintf("Function `%s` supports only flextable objects.", "add_footer()")) |
@@ -538,7 +538,7 @@ add_footer <- function(x, top = TRUE, ..., values = NULL) { |
538 | 538 | #' ) |
539 | 539 | #' ft_2 <- theme_box(ft_2) |
540 | 540 | #' ft_2 |
541 | | -#' @family functions for row and column operations in a flextable |
| 541 | +#' @family table_structure |
542 | 542 | #' @seealso [flextable()], [set_caption()] |
543 | 543 | add_body_row <- function(x, top = TRUE, values = list(), colwidths = integer(0)) { |
544 | 544 | if (!inherits(x, "flextable")) { |
@@ -650,7 +650,7 @@ add_body_row <- function(x, top = TRUE, values = list(), colwidths = integer(0)) |
650 | 650 | #' ) |
651 | 651 | #' ft_2 <- theme_box(ft_2) |
652 | 652 | #' ft_2 |
653 | | -#' @family functions for row and column operations in a flextable |
| 653 | +#' @family table_structure |
654 | 654 | #' @seealso [flextable()], [set_caption()] |
655 | 655 | add_header_row <- function(x, top = TRUE, values = character(0), colwidths = integer(0)) { |
656 | 656 | if (!inherits(x, "flextable")) { |
@@ -722,7 +722,7 @@ add_header_row <- function(x, top = TRUE, values = character(0), colwidths = int |
722 | 722 | #' |
723 | 723 | #' Labels can be formatted with [as_paragraph()]. |
724 | 724 | #' @inheritParams add_body_row |
725 | | -#' @family functions for row and column operations in a flextable |
| 725 | +#' @family table_structure |
726 | 726 | #' @seealso [flextable()], [set_caption()] |
727 | 727 | #' @examples |
728 | 728 | #' library(flextable) |
@@ -834,7 +834,7 @@ data_from_char <- function(values, colwidths, col_keys) { |
834 | 834 | #' be added as a new row. |
835 | 835 | #' @param top should the row be inserted at the top |
836 | 836 | #' or the bottom. Default to TRUE. |
837 | | -#' @family functions for row and column operations in a flextable |
| 837 | +#' @family table_structure |
838 | 838 | #' @examples |
839 | 839 | #' # ex 1---- |
840 | 840 | #' ft_1 <- flextable(head(iris)) |
@@ -895,7 +895,7 @@ add_header_lines <- function(x, values = character(0), top = TRUE) { |
895 | 895 | #' spans all columns (all cells merged into one). Useful for adding |
896 | 896 | #' footnotes or source notes below the table. |
897 | 897 | #' @inheritParams add_header_lines |
898 | | -#' @family functions for row and column operations in a flextable |
| 898 | +#' @family table_structure |
899 | 899 | #' @examples |
900 | 900 | #' ft_1 <- flextable(head(iris)) |
901 | 901 | #' ft_1 <- add_footer_lines(ft_1, |
@@ -1018,7 +1018,7 @@ set_part_df <- function(x, mapping = NULL, key = "col_keys", part) { |
1018 | 1018 | #' ft_1 <- theme_vanilla(ft_1) |
1019 | 1019 | #' ft_1 <- fix_border_issues(ft_1) |
1020 | 1020 | #' ft_1 |
1021 | | -#' @family functions for row and column operations in a flextable |
| 1021 | +#' @family table_structure |
1022 | 1022 | set_header_df <- function(x, mapping = NULL, key = "col_keys") { |
1023 | 1023 | if (!inherits(x, "flextable")) { |
1024 | 1024 | stop(sprintf("Function `%s` supports only flextable objects.", "set_header_df()")) |
@@ -1077,7 +1077,7 @@ set_footer_df <- function(x, mapping = NULL, key = "col_keys") { |
1077 | 1077 | #' to use for splitting. |
1078 | 1078 | #' @param fixed logical. If TRUE match `split` exactly, |
1079 | 1079 | #' otherwise use regular expressions. |
1080 | | -#' @family functions for row and column operations in a flextable |
| 1080 | +#' @family table_structure |
1081 | 1081 | #' @examples |
1082 | 1082 | #' library(flextable) |
1083 | 1083 | #' |
|
0 commit comments