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

17 Feb 2024
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 = c("A", "B"), age = c(25, 30)).
 
Arrays: Similar to matrices but can have more than two dimensions. Example: array(1:12, dim = c(3, 2, 2)).
_______ ____ _________ ______ _________ _____ __________.
___ ______ ______ ___ ____ _____ ________.
_________ ______ _________ ____ ________ _________ ______ _______ ________ ________.
__________ _________ ____ ____ ____ _____ _____.
____ _______ _________ __________ ______.
_________ __________ _______ ____ ____ ____ _____ ______ __________ _____ ________.
____ ____ _______ _________ _______.
__________ __________ ____ __________ ______.
______ ____ _____ ______ ______.
________ ______ _________ _____ ___ ____ _______ __________ _____ ______ ___.
_____ _____ ___ __________ ___ _________ _______ ____.
___ ________ ______ _______ ______.
______ _________ ____ _______ _________ ____ ____ _____ ________ ____.
________ __________ _________ ________ _________.
__________ ________ _______ ______ _______ __________ _____ _________ _________ ____.
______ _________ ___ ______ ________ _____ _________.
_________ _________ _____ _____ ________ _____ ________ ____ ________ ____.
________ _____ _______ ________ _________ __________ ___ _______ _________ ____ _____ _______.
_____ ______ ____ _____ ___ ______ _________.
______ ______ ______ ________ _______ ___.
____ _______ ______ _______ ________ __________ ____ _______ ____ _____ _____.
________ ___ _____ __________ ________ _________ ____ _______ ______ _________ _______.
__________ __________ ______ ___ ________ _________ ____ ____.
____ _____ ___ ______ __________ ________ __________ ______.
________ ___ _________ ____ _________ _____ ____.
____ ____ ___ __________ ________ _______ _________ ____ _____ __________ ____ ______.
___ ___ __________ ______ ______ __________ ________ _________ ___ ____ _________.
__________ _________ ____ ________ _____ ______ ________ _______ ________ ____ ___ ___.
________ ______ ____ ____ _______ _________ _________.
____ ________ ___ ______ __________ _______ _________ ____ ___ ____.
_______ _____ __________ _______ ________ _______ _________ ___.
_________ _________ _____ _____ ______ _______ ___.
_______ ______ ______ _______ ________ _______ _______ ____ _________ _____.
____ _________ _____ ________ _________ ______ __________.
____ __________ ________ ______ ________ _________ _______ ___ ______ ____ ________ ____.
__________ ________ _________ ______ __________ _____.
____ ________ ________ _______ _________ ____ __________ __________ _______.
_______ _____ ___ __________ _____ _______ ______.
________ ________ _____ _________ ______ __________.
____ ____ __________ _______ _____ _________ ____ _______ __________ ____ _____.
____ _________ ____ ___ ____ __________.
______ ________ ______ _____ _________ _________.
______ _______ _____ _____ __________ _____ _____ ______ ____ _____ ________.
___ __________ _________ _____ ______.
___ ________ _____ ________ _________ _______.
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
📞
Call Support Instant phone assistance Discuss different data structures in R. Write program using R for the
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→