Skip to content

Commit

Permalink
Remove gather_attrs example [no ci]
Browse files Browse the repository at this point in the history
Take more than 5s
  • Loading branch information
chainsawriot committed Sep 14, 2023
1 parent 4b1d351 commit 9044169
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
8 changes: 0 additions & 8 deletions R/gather_attrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
#' @details [import()] attempts to standardize the return value from the various import functions to the extent possible, thus providing a uniform data structure regardless of what import package or function is used. It achieves this by storing any optional variable-related attributes at the variable level (i.e., an attribute for `mtcars$mpg` is stored in `attributes(mtcars$mpg)` rather than `attributes(mtcars)`). `gather_attrs` moves these to the data frame level (i.e., in `attributes(mtcars)`). `spread_attrs` moves attributes back to the variable level.
#' @param x A data frame.
#' @return `x`, with variable-level attributes stored at the data frame level.
#' @examples
#' e <- try(import("http://www.stata-press.com/data/r13/auto.dta"))
#' if (!inherits(e, "try-error")) {
#' str(e)
#' g <- gather_attrs(e)
#' str(attributes(e))
#' str(g)
#' }
#' @seealso [import()], [characterize()]
#' @export
gather_attrs <- function(x) {
Expand Down
9 changes: 0 additions & 9 deletions man/gather_attrs.Rd

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

0 comments on commit 9044169

Please sign in to comment.