combine mutate(across) and case_when to fill multiple columns with 0 depending on condition

后端 未结 0 862
北海茫月
北海茫月 2021-01-03 18:12

In a dplyr workflow I try to paste a 0 in each column of a dataframe after the newvar column when newvar == 0, else do nothing. I modified the iris dataset:

l         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题