n <- 15
n
5 -> n
n
x <- 1
X <- 10
x
X
x <- 1
mode(x)
length(x)
A <- "Ramses"; compar <- TRUE; z <- 1i
mode(A); mode(compar); mode(z)
# vectores, arrays
vector.1 <- c(1,10,100,1000)
vector.1[4] #1-based index
vector.1 + 1
vector.1 * 2
vector.2 <- c(8, 15)
vector.2
x <- 1:4; n <- 10; M <- c(10, 35); y <- 2:4
data.frame(x, n)
data.frame(x, M)
Lista1 <- list(x, y); Lista2 <- list(A=x, B=y)
Lista1
Lista2
names(Lista1)
names(Lista2)
# matrices
1:100
100:1
seq(1,100, 4)
?matrix
mtx.1 <- matrix(data=1:100, nrow=10, ncol=11)
mtx.1