Github user adrian555 commented on the pull request:

    https://github.com/apache/spark/pull/9031#issuecomment-147096207
  
    @sun-rui First, the current subsetting function '$' of DataFrame ends up 
with a 'Column' class instead of a real column access of 'DataFrame'. So to 
operate on one column of a DataFrame, in SparkR, you will have to use df[, 
"columnName"] instead.
    
    Second, the major reason of using attach() is to access the columns of a 
DataFrame directly by adding the column name to the search list for R so that R 
can find it just by its name. We see customers using this in their scripts 
often. If SparkR has this too, it will make SparkR more R friendly.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to