I'm new to r programming and I have a csv file which contains a table with two columns: Subject/Subject ID and Age. I want to run a for loop where it checks the age and if it matches the age, then it will return it's corresponding Subject ID. Can someone help me with this. Thanks in advance
Subject ID | Age |
---|---|
001-A | 10 |
002-B | 15 |
003-C | 20 |
004-D | 25 |
005-E | 30 |
006-F | 35 |
007-G | 40 |