/ Python And R Data science skills: 06 vector operation in R language Telugu | How to do Vector Operations in R Studio

Thursday 19 April 2018

06 vector operation in R language Telugu | How to do Vector Operations in R Studio

----------------------------------------------------
v1<-c("ramesh","s","r","n","j","t")
v1[6]
v1[7]
v2<-v1[-1]
v1[-3]
v1[1:3]
v1[2:8]
v1[c(1,3,5)]
v1[c(2,4,6)]
v1[c(-2,-4)]
v1[-3:-6]
a1 <- rnorm(20)
a2 <- rnorm(20)
a3<-a1+a2
b1<-c(1,2,3,4)
b2<- c(10,20,30,40)
b3=b1+b2
b4=b1<b2
b5<-c(1,2,3,4,5,6,7,8)
b6 <- b5+b2
b6

No comments:

Post a Comment