Posts by Marcos Godoy • 23 points
1 post
-
2
votes1
answer49
viewsQ: Create column with another column value if conditon is TRUE
I am trying to create a column x, with the value of column A, if the value of column B == X, if not = 0 Example: sales<-c(100,140,200,300,20,1000,200,3000)…