Adding a column to a data frame

Hi,

Welcome to the RStudio community!
Let me start by linking our homework policy (it's very nice of you to label is as such!)

In summary we can help you with tips and guidance, but will not provide a full solution, though we can discuss further questions.

I will provide some tips soon if no-one else has done so

Kind regards,
PJ