[![Table I try to produce][1]][1]Hi, I am very new to R. With help from very helpful people here I was able to write this code for question 2.1.A in the attached image. Howe