Matthew Kay

Results 308 comments of Matthew Kay

These are great, thanks! ### 1. Censoring Along with #58 I changed compose_data to execute each argument in an environment that includes the variables generated by the previous arguments. This...

Okay cool, this helps clarify! I need to look at this in more detail, but initially looking at this sort of thing: ```r df %>% compose_data( y = select(column2 :...

Awesome, glad it's working! And thanks so much for the feedback and interest --- it has helped push towards a better API for sure. > keeping all the remaining dataframe...

It's definitely still on the list! It's more a question of when I might get to it. :) to sketch a possible solution: basically it would be a function like...

The more I think about this, the more I think a more generic batch + map function would be sufficiently flexible without having to make an interval-generating function for every...

Oh, interesting! The problem I'm seeing (and the reason `x2` is dropped) is that there is no single value of x2 that can be assigned to each of these rows...

Ah, okay. So, I think that integrating this directly into compare_levels is probably not the right approach, because compare_levels does not make an assumption that the user's particular setup involves...

Hmm this looks related to https://github.com/mjskay/tidybayes/issues/132? You might find the workaround there helpful in the short term. Long term I plan to look at this bug in detail and fix...

Yeah! If you're trying to do this programmatically you can also use `sym()` or `as.name()` to convert the character vector into an unevaluated symbol. That would be something like: ```r...

You should also be able to use `syms()` to convert a character vector to a list of symbols. E.g.: ```r my_vars = c("col1", "col2", "col3") samples %>% spread_draws(!!!syms(my_vars)) ``` However...