我想根据代码前面设置的参数动态使用 STR NUM_VAL
--------------------------------------------
141 - Uxsdfasd Zebasdased ABC3 141
639 - xadfa dfdsa euwere (15-30Min) 639
AB/NCDSDFsd - 218 218
。这些参数将是字符串。
例如:
mutate()
是否可以使用引号使用#specify columns used for mutate
column_desired_1 = 'Sepal.Length'
column_desired_2 = 'Sepal.Width'
#failed attempts at using mutate
iris %>% mutate(Sepal.Area = column_desired_1 * column_desired_2)
iris %>% mutate_("Sepal.Area" = column_desired_1 * column_desired_2)
iris %>% mutate(Sepal.Area = noquote(column_desired_1) * noquote(column_desired_2))
?