title: Does column exist and how to rearrange columns in R data frame
body: <p>How do I add a column in the middle of an R data frame? I want to see if I have a column named "LastName" and then add it as the third column if it does not already exist. </p>