0

really simple question here. I need help writing a simple if_else statment.

I need a line of code that replaces NA in column A based on a condition met in column B

Sample code:

A   B
1   3
4   2
7   5
10  5

for example, if cell incolumnn B=5, then fill NA in column A

Desired output:

A   B
1   3
4   2
NA  5
NA  5
pradoer
  • 29
  • 5

0 Answers0