We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've run into an issue where I have to convert data.table objects to data.frames in order for the rules to be applied.
library(data.table) library(magrittr) library(dcmodify) dt_women <- as.data.table(women) m <- modifier( if (height < mean(height)) height <- 2*height , if ( weight > mean(weight) ) weight <- weight/2 ) dt_out <- modify(dt_women,m) df_out <- modify(women,m) sum(delta_out <- dt_out$weight - df_out$weight)
Output:
527
It looks like the methods aren't picking up the second class of the data.table objects
The text was updated successfully, but these errors were encountered:
Yes, this is a property of S4 dispatch, so the only way to do it right now is indeed to convert explicitly.
Sorry, something went wrong.
No branches or pull requests
I've run into an issue where I have to convert data.table objects to data.frames in order for the rules to be applied.
Output:
It looks like the methods aren't picking up the second class of the data.table objects
The text was updated successfully, but these errors were encountered: