Skip to content
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

xmv() when using by #24

Open
qgeissmann opened this issue Aug 30, 2017 · 1 comment
Open

xmv() when using by #24

qgeissmann opened this issue Aug 30, 2017 · 1 comment

Comments

@qgeissmann
Copy link
Contributor

query<- data.frame(experiment_id = "toy_experiment",
                        region_id = 1:10,
                        condition = c("A", "B")) 
dt <- toy_activity_data(query, 3)
#ok
dt[,unique(xmv(region_id))]
# errors
dt[,unique(xmv(region_id)) ,by=id]

We get :

Error in xmv(region_id) : 
  xmv can only be called from inside the `[]` of a behavr object
@qgeissmann qgeissmann changed the title xmv when using by xmv() when using by Aug 30, 2017
@qgeissmann
Copy link
Contributor Author

I am not sure when this is actually useful to use by and metavariables in the same call. So maybe #wontfix. We should provide better error message though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant