Github user felixcheung commented on the pull request:
https://github.com/apache/spark/pull/9023#issuecomment-146649139
It looked in this a bit since I thought I would be working on SPARK-9443
Would it be more R-like to support named list like this:
```
fractions = list(first=0.1, second=0.2)
sampleBy(df, "key", fractions, 0)
```
because then it is already very easy to access a particular fractions
```
> fractions[["first"]]
[1] 0.1
```
I think this is more intuitive as a R user then env()
---
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]