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

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -