You are on page 1of 2

1.

Use R as Calculator and Creation of Variable and Vector Creation

1+1 # use in the form of calculator

1+1+2

3+4+8/7

7-9*7

sqrt(9)

pi

pi-8/9

factorial(8)

x=6 # developing certain varaibles

y=10

a=x*y

b=x/y

a*b

x=90

x=c(1,2,3,4,5,6,7,8,9,10)# Developing vector based on Combine method

y=c('jayati','hitansh','tanay','devanshi') # Charecter

sale=c(24,34,56,54,67)

sale

sale*4

sale/5

z=seq(1,10)# Developing the vector based on sequential method

z=seq(1,100)

z
z*4

p=rep(1,10)# Developing the vector based on replication method

p=rep(1,50)

You might also like