New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zip transform does not allow no key on with #27
Comments
If keys are provided both the source If no In the use case above, do you want to map a single global stats object with every element in the barley data? If so, I believe the following modification to
In the case that the target data is shorter than the source data, the target data indices simply cycle. For stats data with only one entry, |
As of commit 2d5f025, "zipping" two data sets by index now cycles the indices if the secondary data set is shorter than the primary data set. |
Very nice, thanks. Your solution is far more elegant than my proposal (no surprise there). |
As far as I can tell, there is not a transform available that allows copying from something like a total stats transform into all the values of the dataset. For instance on the barley.json example, if we calculate stats on an aggregate level into "totalstats" through
and then we would like to use a formula transform using the totalstats fields such as mean on the data faceted by site, then there is no way to access this data. I thought I could use
but that only zips with the Waseca or key 0. Is there a way to accomplish this other than a potentially modified zip transform? I'm sure I am introducing a new bug, but maybe something like this:
Thanks.
The text was updated successfully, but these errors were encountered: