I have a dataset with 30 variables containing one ICD-code each. I need to identify certain specific codes among these in order to create a new variable indicating whether certain specific codes are present or not (coded as 0 or 1). I've been told that perhaps a "for loop" could work, but I'm not sure how to do this. Any pointers?