Attempt the following:
(a) Write the output of the following statements:
(i) rep(x=c(T,F,T,F), times=c(2,1,2,3))
(ii) 5%/%3; diag(3)
(a) Let's analyze the output of the given statements:
(i) `rep(x = c(T, F, T, F), times = c(2, 1, 2, 3))`
- `c(T, F, T, F)` creates a logical vector with the values `TRUE, FALSE, TRUE, FALSE`.
- `c(2, 1, 2, 3)` specifies the number of times each ______ __________ _____ _____ ________ _________ _________ ___ ____.
_________ _________ ____ ___ ___ _____ __________ ____.
________ _______ ________ ______ _____ ___ _____ ________ ____ _________ _______ ___.
_____ __________ ____ ___ ________ ________.
____ ________ _____ ______ ___ _____ ______ _____ ___ ________ _____ __________.
________ ___ ____ __________ _______.
__________ _______ ___ _______ ________.
_____ _____ _________ ____ ______.
____ __________ _________ ______ _____ __________ ________ _____ ____.
______ _____ ___ _________ _______.
______ ________ ________ __________ __________ _______ ___ _________ ____ ____.
______ ______ ___ ________ ______ ________.
________ __________ _________ _____ __________ ____ __________.
_____ ______ _____ __________ ________ _________ ______ ____ _________.
___ ______ _____ __________ _____ _________ _______ _____ ________.
_____ _________ _________ ___ __________ ________ _____ _______ ____ _______ ____.
________ _______ ___ __________ ___ ___ __________ ______ _____ ________.
______ _________ ___ ________ ________.
______ __________ _________ _____ ______ ____ _________ ____ _______ ______.
___ _____ _________ ______ _________ ____ __________ ________ ____ ____ _________ ____.
_______ ________ ________ ____ _______ _____ __________ ______ ____.
_____ __________ ______ _____ ________ ______.
___ ____ ___ __________ _____ _____ _______ ___.
_____ __________ ___ _____ __________.
_____ _____ _________ _____ ___ __________ _________.
Get Full Answer on WhatsApp