Exercise 1 MTH3409
Exercise 1 MTH3409
3. If Z = NA, 3, 145, NA, 33, 176, NA, 41, write some R code that will remove all occurrences
of NA in Z.
7. Use the R function rep() and seq() to create the following sequences:
6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10
45674567456745674567
12342345345645675678
9. Based on M1 and M2 in Ques. (8), use the logical operators and the which() function to
determine
a. Which elements of M2 are greater than 16.
b. Which elements of M2 are between than 9 and 24 inclusive.
c. Which elements of M1 are greater than 4 or divisible by 3.
10. Find log 𝑒𝑒 0.53. Next, compute the exponential transform of your answer.