moodymudskipper / tb

IN ~PROGRESS my own take on `[.data.frame`
0 stars 0 forks source link

select_if with renaming should be supported #28

Open moodymudskipper opened 4 years ago

moodymudskipper commented 4 years ago
select_if(iris, is.numeric, toupper)
iris %tb>% .[, s({?is.numeric} := toupper(.))]
moodymudskipper commented 4 years ago

simple renaming should work too, though in this case mutating is the same :

iris %tb>% .[, s({Species} := "SPECIES")]
moodymudskipper commented 4 years ago

That's equivalent to iris %tb>% .[, "Species", {?".*"} := "SPECIES"] but still