Question
Discuss different data structures in R. Write program using R for the following tasks: (i) Computation of income tax of a vector of size 10, consisting of the total annual income of 10 different persons. The tax computation should be 10%, if annual income is below 5 lakhs and 20% if it is above 5 lakhs. (ii) Matrix addition, subtraction and multiplication (iii) Finding inverse of a matrix
Answer :
Word Count : 489
Data Structures in R
R offers a variety of data structures for storing and manipulating data:
Vectors: A one-dimensional array that holds elements of the same data type (numeric, character, or logical). Example: c(1, 2, 3).
Lists: A collection of elements of possibly different types (numeric, character, list, etc.). Example: list(1, "A", TRUE).
Matrices: A two-dimensional array where each element is of the same type (numeric, character, etc.). Example: matrix(1:6, nrow = 2, ncol = 3).
Data Frames: A table where columns can be of different types (numeric, character, etc.). Example: data.frame(name = ______ ______ __________ ____ _______ __________.
__________ _________ ____ _______ ________.
______ _______ ______ _______ _________ _____ ________ _______ ___ ________.
__________ __________ __________ ___ ____ __________ _________.
______ _______ _____ ______ ____ _______.
_______ _____ ___ ______ ___ __________ ___ _________.
_____ ________ ________ ______ _________ _______ _________.
________ _________ ____ _____ ______ _____.
_________ __________ _______ _______ __________ _________ __________ __________ _________.
___ ___ ________ _________ ____ ________ ___ ___ ____.
______ ____ _______ _____ ____ _______ _______ ______ ______ ________ ______.
_________ ______ _________ _________ ___ _____ ____ ______.
_________ _____ __________ _________ ________.
________ _________ __________ _____ ______.
______ ________ ______ ___ ____.
________ __________ __________ ___ _______ ___ ___ ____ ______.
__________ ________ _________ ___ ___ ___.
________ ________ ______ _______ _________ ____ ________ ____ ______.
____ ______ __________ __________ ___.
_______ ______ _____ __________ ________.
_______ ______ ____ _____ _________ _____ ________ ___ ______ __________ ___.
_______ _________ _________ ______ ________.
____ ________ _________ _________ _________ ___ _______ _______.
_________ ________ _______ _____ ______.
___ _________ ______ ____ ________ ________ ____.
______ ________ ________ _________ _________ ____ ____ ___ ____ __________ ___.
__________ _______ _________ _________ ______ _______ ________ ______ ________ _________.
_____ __________ _______ _____ _______ _____ ____ _____ _____ _______.
_____ _____ __________ _____ ________ _______ ____ ____.
__________ ________ ___ _____ ___ _____ _________ ______ _______.
______ _______ ________ ____ ______ _______.
______ ____ _____ ____ _______ ___ ___ _______.
_______ _________ ___ _______ _____ _______ _________ ____ __________ ___ __________.
__________ ______ _________ ________ ________ ____ ________ _____ _______ ________ ____.
_________ _______ __________ ________ ___ ______ ________ ____ _____ __________ _____.
___ _________ ___ __________ ___ ____.
__________ __________ _______ _______ _________ __________ ______.
_____ ________ ______ ___ ____ _____ _________ ____ ___ __________ ______ ________.
________ ________ ______ ________ ____ _______ ________.
______ ___ _______ _______ ________.
____ ___ ________ _______ __________ _______ __________ _____.
____ ____ ____ _________ __________ ___ ______ ____ ____.
________ ______ ________ _____ _________ ____.
_________ ___ __________ ____ ____ __________ _________ ___ ____ __________ ____.
______ ______ ______ ___ ______ _________.
__________ _____ ___ ________ _____.
______ ___ ______ __________ ____ _________ _______ ______ ___ _________ ______ ___.
_____ ________ ___ _______ ___ ________ _________ ________ _____ _____ _____ _____.
__________ ____ ___ ___ _______ _________ __________ ________ _________ _____ ______ _____.
________ ___.
Get Full Answer on WhatsApp
__________ _________ ____ _______ ________.
______ _______ ______ _______ _________ _____ ________ _______ ___ ________.
__________ __________ __________ ___ ____ __________ _________.
______ _______ _____ ______ ____ _______.
_______ _____ ___ ______ ___ __________ ___ _________.
_____ ________ ________ ______ _________ _______ _________.
________ _________ ____ _____ ______ _____.
_________ __________ _______ _______ __________ _________ __________ __________ _________.
___ ___ ________ _________ ____ ________ ___ ___ ____.
______ ____ _______ _____ ____ _______ _______ ______ ______ ________ ______.
_________ ______ _________ _________ ___ _____ ____ ______.
_________ _____ __________ _________ ________.
________ _________ __________ _____ ______.
______ ________ ______ ___ ____.
________ __________ __________ ___ _______ ___ ___ ____ ______.
__________ ________ _________ ___ ___ ___.
________ ________ ______ _______ _________ ____ ________ ____ ______.
____ ______ __________ __________ ___.
_______ ______ _____ __________ ________.
_______ ______ ____ _____ _________ _____ ________ ___ ______ __________ ___.
_______ _________ _________ ______ ________.
____ ________ _________ _________ _________ ___ _______ _______.
_________ ________ _______ _____ ______.
___ _________ ______ ____ ________ ________ ____.
______ ________ ________ _________ _________ ____ ____ ___ ____ __________ ___.
__________ _______ _________ _________ ______ _______ ________ ______ ________ _________.
_____ __________ _______ _____ _______ _____ ____ _____ _____ _______.
_____ _____ __________ _____ ________ _______ ____ ____.
__________ ________ ___ _____ ___ _____ _________ ______ _______.
______ _______ ________ ____ ______ _______.
______ ____ _____ ____ _______ ___ ___ _______.
_______ _________ ___ _______ _____ _______ _________ ____ __________ ___ __________.
__________ ______ _________ ________ ________ ____ ________ _____ _______ ________ ____.
_________ _______ __________ ________ ___ ______ ________ ____ _____ __________ _____.
___ _________ ___ __________ ___ ____.
__________ __________ _______ _______ _________ __________ ______.
_____ ________ ______ ___ ____ _____ _________ ____ ___ __________ ______ ________.
________ ________ ______ ________ ____ _______ ________.
______ ___ _______ _______ ________.
____ ___ ________ _______ __________ _______ __________ _____.
____ ____ ____ _________ __________ ___ ______ ____ ____.
________ ______ ________ _____ _________ ____.
_________ ___ __________ ____ ____ __________ _________ ___ ____ __________ ____.
______ ______ ______ ___ ______ _________.
__________ _____ ___ ________ _____.
______ ___ ______ __________ ____ _________ _______ ______ ___ _________ ______ ___.
_____ ________ ___ _______ ___ ________ _________ ________ _____ _____ _____ _____.
__________ ____ ___ ___ _______ _________ __________ ________ _________ _____ ______ _____.
________ ___.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top