Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8997#discussion_r41338088
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -1881,3 +1881,34 @@ setMethod("as.data.frame",
                 collect(x)
               }
     )
    +
    +#' The specified DataFrame is attached to the R search path. This means 
that
    +#' the DataFrame is searched by R when evaluating a variable, so columns in
    +#' the DataFrame can be accessed by simply giving their names.
    +#'
    +#' @rdname attach
    +#' @title Attach DataFrame to R search path
    +#' @param what (DataFrame) The DataFrame to attach
    +#' @param pos (integer) Specify position in search() where to attach.
    +#' @param name (character) Name to use for the attached DataFrame. Names
    +#'   starting with package: are reserved for library.
    +#' @param warn.conflicts (logical) If TRUE, warnings are printed about 
conflicts
    +#' from attaching the database, unless that DataFrame contains an object
    +#' @examples
    +#' \dontrun{
    +#' attach(irisDf)
    +#' summary(Sepal_Width)
    +#' }
    +#' @seealso \link{detach}
    +setMethod("attach",
    +          signature(what = "DataFrame"),
    +          function(what, pos = 2, name = deparse(substitute(what)), 
warn.conflicts = TRUE) {
    +            bf <- what
    --- End diff --
    
    ;)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to