|
3 | 3 | #' @description This function set labels for specified |
4 | 4 | #' columns in the bottom row header of a flextable. |
5 | 5 | #' |
6 | | -#' @param x a `flextable` object |
| 6 | +#' @inheritParams args_x_only |
7 | 7 | #' @param ... named arguments (names are data colnames), each element is a single character |
8 | 8 | #' value specifying label to use. |
9 | 9 | #' @param values a named list (names are data colnames), each element is a single character |
@@ -103,8 +103,7 @@ set_header_labels <- function(x, ..., values = NULL) { |
103 | 103 | #' @description indicate to not print a part of |
104 | 104 | #' the flextable, i.e. an header, footer or the body. |
105 | 105 | #' |
106 | | -#' @param x a `flextable` object |
107 | | -#' @param part partname of the table to delete (one of 'body', 'header' or 'footer'). |
| 106 | +#' @inheritParams args_x_part_no_all |
108 | 107 | #' @family functions for row and column operations in a flextable |
109 | 108 | #' @examples |
110 | 109 | #' ft <- flextable(head(iris)) |
@@ -157,10 +156,7 @@ delete_rows_from_part <- function(x, i) { |
157 | 156 | #' of any span parameters that may have been set previously. |
158 | 157 | #' They will have to be redone after this operation or |
159 | 158 | #' performed only after this deletion. |
160 | | -#' @param x a `flextable` object |
161 | | -#' @param i rows selection |
162 | | -#' @param part partname of the table (one of 'all', 'body', 'header', 'footer') |
163 | | -#' @family functions for row and column operations in a flextable |
| 159 | +#' @inheritParams args_x_i_part |
164 | 160 | #' @examples |
165 | 161 | #' ft <- flextable(head(iris)) |
166 | 162 | #' ft <- delete_rows(ft, i = 1:5, part = "body") |
@@ -222,8 +218,7 @@ delete_colums_from_part <- function(x, j) { |
222 | 218 | #' of any span parameters that may have been set previously. |
223 | 219 | #' They will have to be redone after this operation or |
224 | 220 | #' performed only after this deletion. |
225 | | -#' @param x a `flextable` object |
226 | | -#' @param j columns selection |
| 221 | +#' @inheritParams args_x_j |
227 | 222 | #' @family functions for row and column operations in a flextable |
228 | 223 | #' @examples |
229 | 224 | #' ft <- flextable(head(iris)) |
@@ -317,7 +312,7 @@ add_rows_to_tabpart <- function(x, rows, first = FALSE) { |
317 | 312 | #' |
318 | 313 | #' If some columns are not provided, they will be replaced by |
319 | 314 | #' `NA` and displayed as empty. |
320 | | -#' @param x a flextable object |
| 315 | +#' @inheritParams args_x_only |
321 | 316 | #' @param top should the rows be inserted at the top or the bottom. |
322 | 317 | #' @param ... named arguments (names are data colnames) of values |
323 | 318 | #' to add. It is important to insert data of the same type as the |
@@ -480,7 +475,7 @@ add_footer <- function(x, top = TRUE, ..., values = NULL) { |
480 | 475 | #' |
481 | 476 | #' Labels can also be formatted with [as_paragraph()]. |
482 | 477 | #' |
483 | | -#' @param x a flextable object |
| 478 | +#' @inheritParams args_x_only |
484 | 479 | #' @param top should the row be inserted at the top or the bottom. |
485 | 480 | #' @param values values to add. It can be a `list`, a `character()` vector |
486 | 481 | #' or a call to [as_paragraph()]. |
@@ -605,7 +600,7 @@ add_body_row <- function(x, top = TRUE, values = list(), colwidths = integer(0)) |
605 | 600 | #' |
606 | 601 | #' Labels can also be formatted with [as_paragraph()]. |
607 | 602 | #' |
608 | | -#' @param x a flextable object |
| 603 | +#' @inheritParams args_x_only |
609 | 604 | #' @param top should the row be inserted at the |
610 | 605 | #' top or the bottom. Default to TRUE. |
611 | 606 | #' @param values values to add, a character vector (as header rows |
@@ -825,13 +820,13 @@ data_from_char <- function(values, colwidths, col_keys) { |
825 | 820 | #' add labels in the header, most of the time it will |
826 | 821 | #' be used to adding titles on the top rows of the flextable. |
827 | 822 | #' |
828 | | -#' @param x a `flextable` object |
| 823 | +#' @inheritParams args_x_only |
829 | 824 | #' @param values a character vector or a call to [as_paragraph()] |
830 | 825 | #' to get formated content, each element will |
831 | 826 | #' be added as a new row. |
832 | 827 | #' @param top should the row be inserted at the top |
833 | 828 | #' or the bottom. Default to TRUE. |
834 | | -#' @family functions that add rows in the table |
| 829 | +#' @family functions for row and column operations in a flextable |
835 | 830 | #' @examples |
836 | 831 | #' # ex 1---- |
837 | 832 | #' ft_1 <- flextable(head(iris)) |
@@ -993,7 +988,7 @@ set_part_df <- function(x, mapping = NULL, key = "col_keys", part) { |
993 | 988 | #' is used as the top header/footer row and the rightmost column |
994 | 989 | #' is used as the bottom header/footer row. |
995 | 990 | #' |
996 | | -#' @param x a `flextable` object |
| 991 | +#' @inheritParams args_x_only |
997 | 992 | #' @param mapping a `data.frame` specyfing for each colname |
998 | 993 | #' content of the column. |
999 | 994 | #' @param key column to use as key when joigning data_mapping. |
@@ -1059,7 +1054,7 @@ set_footer_df <- function(x, mapping = NULL, key = "col_keys") { |
1059 | 1054 | #' \if{html}{\out{ |
1060 | 1055 | #' <img src="https://www.ardata.fr/img/flextable-imgs/flextable-016.png" alt="add_header illustration" style="width:100\%;"> |
1061 | 1056 | #' }} |
1062 | | -#' @param x a flextable object |
| 1057 | +#' @inheritParams args_x_only |
1063 | 1058 | #' @param opts Optional treatments to apply to the resulting header part. |
1064 | 1059 | #' This should be a character vector with support for multiple values. |
1065 | 1060 | #' |
|
0 commit comments