You are on page 1of 1

Exercise 1

Exercise.1<-(10:53
exercise.1
> exercise.1*4
K<- prod(exercise.1)
[1] 1.178043e+64
Exercise 2
exercise.2<-rep(1:10,300)
Exercise 3
> a<-c(3,7,1,5)
> rep(a,15)
> b<-rep(a,15)
> belugawhalesarethebest22<-b[31]
Exercise 4
> b[c(7,32,60)]
Exercise 5
f<-c(5,10,2,6,7)
g<-c(0,1)
g<-rep(g,100)
m<-c(f,g)
j<-c(m[c(3:26)])
k<-j*10

You might also like