Question: 86 - # Question 2 (Total marks: 11) 87 88 One of R's built-in datasets is ChickWeight . Take some time to bring up and

 86 - # Question 2 (Total marks: 11) 87 88 Oneof R's built-in datasets is ChickWeight . Take some time to bring
up and inspect the corresponding help file (obtained by typing ?ChickWeight atthe prompt) to familiarise yourself with the nature of the data it

86 - # Question 2 (Total marks: 11) 87 88 One of R's built-in datasets is ChickWeight . Take some time to bring up and inspect the corresponding help file (obtained by typing ?ChickWeight at the prompt) to familiarise yourself with the nature of the data it contains. 89 90 - ### (a) [3 marks] 91 Of the repeated measurements taken on each chick, a small number of specific chicks were not measured at the final day of the study (day 21) . 92 93 Below you will see an incomplete for loop skeleton. Write code inside the loop, following the steps outlined in the comments, that will automatically identify (and store in the vector badchicks ) the chick IDs that do not have a full set of records (i.e. those chicks that do not have a recorded entry for day 21). You should find that chicks "8" "15", "16" "18" and "44" are affected (they are stored as character strings) . HINT: Note that the unique command provides all unique entries in a vector; for example 94 - {r} 95 foo

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!