ewenharrison / finalfit
Showing 1 of 5 files from the diff.
Newly tracked file
R/ff_interaction.R changed.
Other files ignored by Codecov

@@ -10,7 +10,7 @@
Loading
10 10
#' @param ... The unquoted names of two factors.
11 11
#' @param levels_sep Quoted character: how levels are separated in new variable.
12 12
#' @param var_sep Quoted character: how variable name is separated.
13 -
#' @param label_sep Quoted character: how variable label is spearated
13 +
#' @param label_sep Quoted character: how variable label is separated
14 14
#'
15 15
#' @return Original data frame with new variable added via `dplyr::mutate`.
16 16
#' @export
@@ -19,9 +19,9 @@
Loading
19 19
#'
20 20
#' colon_s %>%
21 21
#'   ff_interaction(sex.factor, perfor.factor) %>%
22 -
#'     summary_factorlist("mort_5yr", "sex.factor__perfor.factor")
22 +
#'     summary_factorlist("mort_5yr", "sex.factor_perfor.factor")
23 23
24 -
ff_interaction = function(.data, ..., levels_sep = "|", var_sep = "__", label_sep=":"){
24 +
ff_interaction = function(.data, ..., levels_sep = "_", var_sep = "_", label_sep=":"){
25 25
	.f <- rlang::quos(...)
26 26
	.f_len <- length(.f)
27 27
	if(.f_len>2) stop("Currently only supports two factors.")
Files Coverage
R 82.47%
Project Totals (39 files) 82.47%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 1%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading