0% found this document useful (0 votes)
9 views1 page

AP2024254000832 Experiment-1

The document outlines a lab assignment for the CSE1006 course at Vellore Institute of Technology, focusing on data analytics using RStudio. It includes tasks such as constructing a matrix, creating vectors for stock companies and prices, and generating a matrix of odd numbers. Additionally, it specifies formatting requirements for submission, including personal details and program execution output.

Uploaded by

courses.prep1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

AP2024254000832 Experiment-1

The document outlines a lab assignment for the CSE1006 course at Vellore Institute of Technology, focusing on data analytics using RStudio. It includes tasks such as constructing a matrix, creating vectors for stock companies and prices, and generating a matrix of odd numbers. Additionally, it specifies formatting requirements for submission, including personal details and program execution output.

Uploaded by

courses.prep1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Vellore Institute of Technology

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.

2. Create three new vectors

 stock_company and assign the following companies as a vector: Microsoft,


Apple, Facebook, and Tesla;
 stock_ticks and assign the following as a vector: MSFT, AAPL, FB, and
TSLA;
 make_cars and assign the logical values: FALSE, FALSE, FALSE, and TRUE.
 After that, add 5 to the vector "stock_prices" and name it using the
"stock_company" vector created above.

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:

 Mention your name, roll number, and assessment subject details.


 Document should be in PDF/word with your registration number.
 In program execution shot 1st display your name and reg no followed by output.

*********

You might also like