Professional Documents
Culture Documents
Assignment 5 Big Data Roll No 18
Assignment 5 Big Data Roll No 18
Assignment 5 Big Data Roll No 18
l<-list("pune","nashik","nanded","mumbai")
print(l)
names(l)<-c(" first city","second city","third city","fourth city")
print(l)
l[5]<-"Aurangbad"
print(l)
l[5]<-NULL
print(l)
l[3]<-"Delhi"
print(l)
FINAL OUTPUT :
Q2) Write a script in R to create two vectors of different lengths
and give these vectors as input an array and print addition and
subtraction of those matrices.
FINAL OUTPUT:
FINAL OUTPUT :