So, if one wishes to apply an operation row by row in dplyr, one can use the rowwise
function, for example: Applying a function to every row of a table using dplyr?
Is there a unrowwise
function which you can use to stop doing operations row by row? Currently, it seems adding a group_by
after the rowwise
removes row operations, e.g.
data.frame(a=1:4) %>% rowwise() %>% group_by(a)
# ...
# Warning message:
# Grouping rowwise data frame strips rowwise nature
Does this mean one should use group_by(1)
if you wish to explicitly remove rowwise
?