AP2024254000832 Experiment-1
AP2024254000832 Experiment-1
SCOPE
CSE1006 - Foundations of Data Analytics LAB
DA -1
Question- A
1. Construct a matrix in RStudio using the data given in the table below.
Fill the matrix by row
Add appropriate row names and column names.
Determine how many people have blond hair and blue eyes.
Sum row values and column values.
3. Create a matrix named "odd.mat" that consists of odd numbers starting with "1"
with 10 columns and 5 rows. Hints: You can type 50 odd numbers directly.
Alternatively, you can use a function called seq as follows: seq(from = 1, by = 2,
length.out = 50).
Note:
*********