Relative Content

Tag Archive for rdplyrtidyeval

Using mutate inside a function to assign a new variable

I’m trying to better understand tidy evaluation and the use of rlang, but there’s a specific use case I can’t figure out. Let’s say I want to run a linear mixed model and save the output of one predictor that interests me. Running this code outside of a function would look like this:

Using mutate inside a function to assign a new variable

I’m trying to better understand tidy evaluation and the use of rlang, but there’s a specific use case I can’t figure out. Let’s say I want to run a linear mixed model and save the output of one predictor that interests me. Running this code outside of a function would look like this:

Using mutate inside a function to assign a new variable

I’m trying to better understand tidy evaluation and the use of rlang, but there’s a specific use case I can’t figure out. Let’s say I want to run a linear mixed model and save the output of one predictor that interests me. Running this code outside of a function would look like this: