r - dplyr::manip: How to use string arguments (holding colnames) instead of column names -


I like the description of the headline:

instead:

 < Code> Filters (mtcars, cyl == 8) I  
  var  

such as

  mtcars [Joe (mtcars [, var] == 8],]  

I think there are functions like starts_with () but none of IMHO In fact, it is not suitable for the above mentioned rather than simple application.

try this:

  mtcars%>% (filter (.,. [[Var]] == 8))  

Comments

Popular posts from this blog

php - Select box validation (in laravel) -

pandas - Iterate on Groupby Object's fields -

Creating a sparse matrix in Matlab with a specified number of independent Bernoulli +-1 nonzero entries -