Referring to columns in R can be done using both number and field name syntax. Although field name syntax is easier to use in programming, my blog demonstrates how you can use column numbers to make automation easier.
Learn the “data science of data collection” through my free introductory course! If you want to learn more, continue with the whole six-course series. Great for graduate students and QA/QI professionals!