Sie sind auf Seite 1von 5

Sr.

Number:
Name of Participant:
Email ID:
Mobile Number:
Day1 Date 27 April 2020

Assignment1/ Video Number 3

1. Find answers to log2(2ˆ5) and log(exp(1)*exp(1)). Explain.


2. Explore the Help tab in RStudio: Change the labels, title, etc.
3. Hint: try plot(x,y,xlab = "x-axis")
4. Copy paste a few examples provided in Help and see what they do.

Assignment2/ Video Number 4


1. Find out how to calculate median - using Help button and web search.
2. Calculate mean and median of the data frame CO2.
3. Take the help of R for all the commands shown in this tutorial.
4. Import a data set from the Internet directly or through a file.

Assignment3/ Video Number 5


1. Check whether plyr package is installed on your machine. If yes, load it.

Assignment4/ Video Number 6


1. Create a script and save it on Desktop as testscript.R
2. Load myfirstscript.R (created in this tutorial) in testscript.R and run it.

Assignment5/ Video Number 7


1. Create a new folder on your computer and make it your working
directory.

Assignment6/ Video Number 8


1. Create a subset from captaincy data frame with the captains who have
played > 20 matches and lost < 14 matches.

Assignment7/ Video Number 9


1. Consider 2 vectors c(9,10,11,12) and c(13,14,15,16). Create a 4 by 2
matrix from these two vectors.

Assignment8/ Video Number 10


1. Consider 2 vectors c(9,10,11,12) and c(13,14,15,16). Create a 4 by 2
matrix from these two vectors.
2. Add another vector c(17,18,19,20) as a column to the previous matrix.

Assignment9/ Video Number 11


1. Using built-in dataset iris, implement all the functions we have learnt in
this tutorial.

Assignment10/ Video Number 12


1. Using built-in dataset iris, find out the categorical variables.
2. Can you find a variable which is categorical, but R reads as numeric? If
yes, change it to categorical.

Assignment11/ Video Number13


1. Create a numeric vector c(1:5) and a 5 by 3 matrix with elements from 1
to 15.
2. Create a named list with vector, matrix and iris data set.
3. Retrieve the iris data set from the list using dollar operator and indexing
method.
4. State the differences between the results obtained by using dollar operator
and indexing method of accessing iris.

Assignment12/ Video Number 14


1. Read the file moviesData.csv. Create a histogram of the object named
imdb num votes in this file.
2. Create a pie chart of the object mpaa rating.
3. Save both the plots.
Assignment13/ Video Number 15
1. Read the file moviesData.csv. Create a bar chart of critics score for the
first 10 movies.
2. Create a scatter plot of imdb rating and imdb num votes to see their
relation.
3. Save both the plots.

Assignment14/ Video Number 16


1. Consider the built-in data set mtcars. Find the numerical variables in this
data set.
2. Make a scatter plot from the objects named mpg and wt in this data set.
3. Save the plot in .jpeg format.

Assignment15/ Video Number 17


1. Using built-in data set mtcars, draw a bar chart from the object cyl.
2. Add suitable labels to this bar chart.

Assignment16/ Video Number 18


1. Consider the built-in data set mtcars. Find the cars with hp greater than
100 and cyl equal to 3.
2. Arrange the mtcars data set based on mpg variable.

Assignment17/ Video Number 19


1. Use the built-in data set airquality. Using select function, select the
variables Ozone,Wind, and Temp in this data set.
2. Use the built-in data set mtcars. Rename the variables mpg and cyl with
MilesPerGallon and Cylinder, respectively.

Assignment18/ Video Number 20


1. Use the built-in data set iris. Using the pipe operator, group the flowers by
their Species.
2. Summarise the grouped data by the mean of Sepal.Length and
Sepal.Width.
Assignment19/ Video Number 21
1. Use the built-in data set iris. Find the Species, in which Sepal.Length is
greater than Petal.Length.
2. Count all such Species.

Assignment20/ Video Number 22


1. Create a function which computes combination of two numbers.
2. Create a function which takes a natural number as an argument, and prints
Fibonacci series. For example, consider fibonacci(5). It should print the first
5 elements of Fibonacci series, i.e. 1, 1, 2, 3, 5.

Das könnte Ihnen auch gefallen