Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed May 20, 2024
1 parent 93b776d commit a4b1e7c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions R/data_to_wide.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#' @param data A data frame to convert to wide format, so that it has more
#' columns and fewer rows post-widening than pre-widening.
#' @param by The name of the column that identifies the rows in the data by
#' which observations are grouped and the gathered data spread into new columns.
#' Usually, this is a variable containing an ID for observations that have been
#' repeatedly measured. If `NULL`, it will use all remaining columns that are
#' not in `names_from` or `values_from` as ID columns. `by` can also be a
#' character vector with more than one name of identifier columns. See also
#' 'Details'.
#' which observations are grouped and the gathered data is spread into new
#' columns. Usually, this is a variable containing an ID for observations that
#' have been repeatedly measured. If `NULL`, it will use all remaining columns
#' that are not in `names_from` or `values_from` as ID columns. `by` can also
#' be a character vector with more than one name of identifier columns. See also
#' 'Details' and 'Examples'.
#' @param names_from The name of the column in the original data whose values
#' will be used for naming the new columns created in the widened data. Each
#' unique value in this column will become the name of one of these new columns.
Expand Down
12 changes: 6 additions & 6 deletions man/data_to_wide.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a4b1e7c

Please sign in to comment.