-
Notifications
You must be signed in to change notification settings - Fork 22
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
conditioning vars are not found #90
Comments
In other words.... How do I get my keys back or never lose them? |
See mt <- mtcars
mt$gear <- paste("Gear_", mt$gear, sep = "")
mt$carb <- paste("Carb_", mt$carb, sep = "")
byGearCarb <- divide(
mt,
by = c("gear", "carb")
)
byGear <- byGearCarb %>%
addTransform(flatten) %>%
divide(by = "gear") |
I'm going to leave this open though because it actually should make the conditioning variables available for any operation performed on the data. I don't know why it is not in this case - I'll look into it. Conditioning variables are omitted as columns and stored as attributes to save space. |
By making preTransFn = flatten, my error seems to be resolved... byGear <- divide(
byGearCarb,
by = c("gear"),
preTransFn = flatten
)
# * Verifying parameters...
# ** note **: preTransFn is deprecated - please apply this transformation using 'addTransform()' to your input data prior to calling 'divide()'
# *** finding global variables used in 'fn'... [none]
# package dependencies: datadr
# *** testing 'fn' on a subset... ok
# * Applying division... |
If I divide by A and B, then want to re-group to just A, the columns aren't found as they are conditioning vars. This is very confusing to me.
example:
Can this be fixed by a preTransFn? Should this default to add the conditioning vars?
The text was updated successfully, but these errors were encountered: