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

R Lab Syllabus

The document outlines a laboratory program in R programming. It includes 7 programs involving: [1] generating and manipulating vectors and matrices; [2] writing functions to find mode and check for Armstrong numbers; [3] generating a data frame; [4] generating factors of a vector; [5] customizing graphs using plot functions; [6] analyzing mtcars data with summary and geom functions; and [7] implementing quicksort. The goal is to work with various data types and structures in R including vectors, matrices, data frames, and factors, as well as build functions and customize graphs.

Uploaded by

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

R Lab Syllabus

The document outlines a laboratory program in R programming. It includes 7 programs involving: [1] generating and manipulating vectors and matrices; [2] writing functions to find mode and check for Armstrong numbers; [3] generating a data frame; [4] generating factors of a vector; [5] customizing graphs using plot functions; [6] analyzing mtcars data with summary and geom functions; and [7] implementing quicksort. The goal is to work with various data types and structures in R including vectors, matrices, data frames, and factors, as well as build functions and customize graphs.

Uploaded by

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

20ECPW301- R programming with Laboratory

1. Data types

2. Functions

3. Creating and manipulating a vector

4. Creating and manipulating matrix

5. Creating and operations on Factors

6. Data Frames-Lists-Operators-PLOT Function in R to customize graphs.

LIST OF PROGRAMS

1. a. Generate 2 vector ‘data1 and data2’ with 10 elements using seq(), c() functions

and perform the addition of both.Show how the elements can be added or

Deleted in the vector.

b. Generate 2 matrices with 3 rows and three columns and perform the matrix

Multiplication of the same.

c. Generate an array of dimension 1X 5 and repeat the same 2 times.

2. a .Write a function to find the mode of a vector data {2,2,5,3,7,4,2,5,9,4}.

b.Write a function to find the Armstrong number

3. Generate the data frame with the 5 columns and 5 rows with column name of Student

Id, Student Name, Maths, science, Social

4. Generate a vector ‘courses preferred’ with elements (ECE, EEE, EIE, ECE, ECE, EEE,

MECH, CSE, IT, MECH) find the factors of the same.

5. With the help of R plot check the use of locator(),text(),pch(),col(),cex().

6. Analyze the data set of ‘mtcars’ for the summary(),facet(),aes(),geom_points()

geom_smooth() functions.

7. Write and execute the R program for the quicksort operation.

You might also like