If someone could work this out for me or show how to do the questions in R

Posted Date: