Question
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)
Answer :
Word Count : 250
_________ _________ ____ ___ _____ ____ ____ ____.
________ ____ _________ ______ ________ ___ _________ __________ ________ ____.
_____ _______ ____ _________ ___ _________.
_________ _________ ____ ______ ___ __________ ___ ________.
_______ _____ ____ ______ _______ __________ ________ _____ ______ _____ ________.
______ ___ ____ _____ ___ ___ _________ ___ ___ _____.
__________ ______ ____ __________ ___ _____ ___ _____ ______ ______.
_____ ___ ___ __________ __________.
______ ___ ________ _______ _____ _____ ____ _________ ___ _________ _________ ___.
_____ ______ ____ _______ ________ ______ ___.
______ ___ _________ __________ _______ _________.
______ _______ _______ ___ ________ _____ ___ _______ _________ ________ _____ ____.
________ __________ ______ ______ _____ _________ ______ ________.
____ __________ ____ _____ ___ __________ ______ _________ ____ _________ __________ ___.
__________ ___ ________ _________ ____ ________ ______ _________ __________.
________ _________ _________ __________ _______.
______ _____ ____ ____ ______ _______ __________ __________ _________ __________.
_____ _______ ___ ______ __________ _____ ________ _________ ___ ____ ________ _______.
________ _____ _____ ______ ____ _________.
___ __________ _________ ______ ________ _________.
______ _________ _______ _____ ______ ______ _____ _________ ____ ____ _______ _________.
______ ___ ___ ________ _________.
_____ ________ ________ ______ ____.
Skip in 10
(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 element should be repeated.
The
________ ____ _________ ______ ________ ___ _________ __________ ________ ____.
_____ _______ ____ _________ ___ _________.
_________ _________ ____ ______ ___ __________ ___ ________.
_______ _____ ____ ______ _______ __________ ________ _____ ______ _____ ________.
______ ___ ____ _____ ___ ___ _________ ___ ___ _____.
__________ ______ ____ __________ ___ _____ ___ _____ ______ ______.
_____ ___ ___ __________ __________.
______ ___ ________ _______ _____ _____ ____ _________ ___ _________ _________ ___.
_____ ______ ____ _______ ________ ______ ___.
______ ___ _________ __________ _______ _________.
______ _______ _______ ___ ________ _____ ___ _______ _________ ________ _____ ____.
________ __________ ______ ______ _____ _________ ______ ________.
____ __________ ____ _____ ___ __________ ______ _________ ____ _________ __________ ___.
__________ ___ ________ _________ ____ ________ ______ _________ __________.
________ _________ _________ __________ _______.
______ _____ ____ ____ ______ _______ __________ __________ _________ __________.
_____ _______ ___ ______ __________ _____ ________ _________ ___ ____ ________ _______.
________ _____ _____ ______ ____ _________.
___ __________ _________ ______ ________ _________.
______ _________ _______ _____ ______ ______ _____ _________ ____ ____ _______ _________.
______ ___ ___ ________ _________.
_____ ________ ________ ______ ____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.