R vectors
-
c
-
c stands for concatenate
x = c(2, 5, 1, 19)
print(x)
y = x + 2
print(y)
z = x * 2
print(z)
lg = log(x)
print(lg)
{% embed include file="src/examples/vectors/vector.out)
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
c
c stands for concatenate
x = c(2, 5, 1, 19)
print(x)
y = x + 2
print(y)
z = x * 2
print(z)
lg = log(x)
print(lg)
{% embed include file="src/examples/vectors/vector.out)