[ 
https://issues.apache.org/jira/browse/SPARK-10913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14941449#comment-14941449
 ] 

Weiqiang Zhuang commented on SPARK-10913:
-----------------------------------------

I think they are different issues. If I understand, SPARK-7499 deals with cases 
where inside a function of a DataFrame, the column of the DataFrame may be 
referenced by the name. For example, the select function: select(df, 
Sepal_Width). Where the first input is the DataFrame and the second input is 
one of the columns of the DataFrame.

This issue, however, is to implement the attach() function which will allow to 
use the object (any column of a DataFrame) by the name without specifying again 
which DataFrame the object associated with. For example:

attach(df)
head(Sepal_Width)
summary(Sepal_Width)
detach()

The head() and summary() functions know exactly where to find the object for 
Sepal_Width without specifying it as df[, "Sepal_Width"].

> Add attach() function for DataFrame
> -----------------------------------
>
>                 Key: SPARK-10913
>                 URL: https://issues.apache.org/jira/browse/SPARK-10913
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SparkR
>            Reporter: Weiqiang Zhuang
>            Priority: Minor
>
> Need a R-like attach() API: "Attach Set of R Objects to Search Path"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to