So I am very new to R, and am not very sure what my problem is.
So my data looks something like this: