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 differentpersons. 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

29 Nov 2023
Answer :
Word Count : 321

Sure, I'll break down the different data structures in R and provide code for the tasks you've mentioned.

### Data Structures in R:

R supports various data structures such as vectors, matrices, arrays, lists, and data frames.

1. Vectors: A vector is a collection of elements of the same data type. It can ___ _______ _________ _________ ___ _______.
___ __________ __________ _______ ___ ___ _______ ___ ________ ________.
____ ______ ______ ________ _______ _______ _______ ____ _____ ____ __________.
_____ _______ __________ ___ _____ ____ ________ _________ ___ __________ ______.
_________ __________ __________ _______ __________ _____ _________ _________ ______ ______ ______ _______.
_______ __________ ___ ___ ___ _______ ________ ____ _________ __________.
________ ________ _____ ______ _________.
________ __________ ___ __________ __________ __________ __________ ____ __________ _____.
__________ _________ __________ ____ ____ ____ ________ ________ ________ _____ __________ _______.
____ _____ ___ ____ ___ ___ _________ ___.
______ ____ _________ _____ ____ ______ __________ ______.
_________ _______ _____ _________ ________ ________ _____ ___ ___ ___.
______ __________ ____ __________ ______ _________ ________ _________ _______ _____ __________ __________.
____ _____ _______ ____ _______ _________ ________ ___ _______ _____.
______ __________ _____ ______ _________ _____ __________ ____ _____ _____ _____ ____.
__________ ___ __________ __________ ____ _______ ________.
_____ __________ _________ __________ ____ ________ ___.
_____ _______ ________ ____ _________ ______.
____ _____ _____ _______ __________ ___ ___ __________ _______ ______.
_____ _______ _________ _______ _______ ______ ______ ________ ______.
___ ____ __________ __________ _______.
_______ _________ ________ ____ _____.
_____ ________ ___ _________ ____ ______ __________ _______.
______ ___ ________ ________ __________ _________ ______ _____ _______ ______.
_______ _____ _____ ______ _______ ___.
__________ ________ ______ __________ ____.
__________ _______ __________ _________ ___ ___ ________ ________.
_______ ___ ________ _________ _____ ________ _________ _____ ___ _______ _________ _________.
___ _______ __________ ___ _____ __________ _________.
________ ______ ______ _______ _______ _______ ______ ________ _______.
______ ______ _______ _______ __________ __________ ________.
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
→