title: While loop with if condition in a dataframe
body: <p>I have a dataframe where one of the columns (cylinders) include numeric data ranging from 3-8. Using a while loop in R, i need to create a new vector called 4_cyl that contains the names of the rows that have exactly 4 cylinders with an if command inside the loop to check for 4 cylinders</p>