Compare 260eed8 ... +1 ... f872abd

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 2 of 34 files from the diff.
Other files ignored by Codecov
docs/index.html has changed.
docs/authors.html has changed.
NEWS.md has changed.
docs/404.html has changed.

@@ -1,8 +1,9 @@
Loading
1 1
#' Pivot data from long to wide
2 -
#
3 -
#' `dt_pivot_wider()` "widens" data, increasing the number of columns and
2 +
#'
3 +
#'
4 +
#' \code{dt_pivot_wider()} "widens" data, increasing the number of columns and
4 5
#' decreasing the number of rows. The inverse transformation is
5 -
#' `dt_pivot_longer()`. Based on the `tidyr` equivalents.
6 +
#' \code{dt_pivot_longer()}. Syntax based on the \code{tidyr} equivalents.
6 7
#'
7 8
#' @param dt_ the data table to widen
8 9
#' @param id_cols A set of columns that uniquely identifies each observation. Defaults to all columns in the data table except for the columns specified in `names_from` and `values_from`. Typically used when you have additional variables that is directly related.
@@ -58,10 +59,6 @@
Loading
58 59
    dcast_form <- as.formula(paste("...",
59 60
                                   paste(names_from, collapse = " + "),
60 61
                                   sep = " ~ "))
61 -
  } else if (length(id_cols == 1)) {
62 -
    dcast_form <- as.formula(paste(id_cols,
63 -
                                   paste(names_from, collapse = " + "),
64 -
                                   sep = " ~ "))
65 62
  } else {
66 63
    dcast_form <- as.formula(paste(paste(id_cols, collapse = " + "),
67 64
                                   paste(names_from, collapse=" + "),

@@ -1,8 +1,9 @@
Loading
1 1
#' Pivot data from wide to long
2 2
#'
3 -
#' `dt_pivot_longer()` "lengthens" data, increasing the number of rows and
4 -
#' decreasing the number of columns. The inverse transformation is
5 -
#' `dt_pivot_wider()`. Based on the `tidyr` equivalents.
3 +
#'
4 +
#' \code{dt_pivot_wider()} "widens" data, increasing the number of columns and
5 +
#' decreasing the number of rows. The inverse transformation is
6 +
#' \code{dt_pivot_longer()}. Syntax based on the \code{tidyr} equivalents.
6 7
#'
7 8
#' @param dt_ The data table to pivot longer
8 9
#' @param cols Column selection. If empty, uses all columns. Can use -colname to unselect column(s)

Learn more Showing 1 files with coverage changes found.

Changes in R/pivot_wider.R
-1
+1
Loading file...
Files Coverage
R +1.49% 94.54%
src/fill.cpp 97.67%
Project Totals (12 files) 95.54%
Loading