
Jacob I. answered 08/27/19
Experienced Data Science Professional and Python Programmer
Hello,
Whenever I am manipulating data in R, I have found that the dplyr package can be quite useful. For your question, I used the mutate function, which can create a new column using existing columns. Please reference the below code and let me know if this helps!