In [2]:
x = c(1,2,3,4,5,6) #concatenate to create a vector
x
In [4]:
length(x)
In [5]:
y = c(8,9,10,11,12,14)
x_y = x+y
x_y
In [6]:
ls()
remove variables using rm(var_name)
In [8]:
rm('x_y')
ls()
In [7]:
?ls
In [9]:
m1 = matrix(data= x, nrow=2, ncol=3)
m1
In [ ]: