Off topic:Comparing two columns and replace in R Package
0
0
Entering edit mode
7.2 years ago
misterie ▴ 110

I have a problem with using for loop. My problem is: if two columns are equal (have 176 or 184 or 180 or 182 or 163 or 167 value) replace two columns =NA. Example data

I would like to replace the first, fifth and last columns should be replace for NA because both columns contain 176 or 184 or 180 or 182 or 163 or 167 value. The condition is a the same value in both columns.

Thank you!

R r compare if-condition • 6.0k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 3180 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6