Questions tagged [quosure]
79 questions
0
votes
2 answers
Converting a quoted list into a list of quoted expressions for dplyr::filter
I am writing a function that combines a dplyr::filter step (which I want to parametrize) before doing some other stuff. I want provide a default argument for the filtering criteria that can be overridden. This precludes passing the filtering…

Andrew M
- 490
- 5
- 11
0
votes
0 answers
R: Testing and subsetting elements of quosures
I’m trying to write a function to pass some quosure arguments to an interior dplyr::select. However, I want to be able to apply some conditions to the arguments after they have been provided. In this particular case, because selecting columns that…

andrewH
- 2,281
- 2
- 22
- 32
0
votes
2 answers
Shiny Screening App - User Filter / Mutate / Modify
I'm in the process of creating a Shiny screening application, which would allow users to type R commands like filter and mutate on a predetermined dataframe.
Personally, I think the most user friendly way to do this would be to have a blank…

Zac Garland
- 153
- 7
0
votes
3 answers
Making new expressions within a function using existing quosures (dplyr programming)
I am trying to make "new expressions" based off quosures within a function from its arguments, but am unsure of how exactly to make this new expression.
Here is an example where I pass a numerator and denominator and would ideally do mutations on…

Andy
- 4,549
- 31
- 26