R Data Structures And Algorithms Pdf Apr 2026
\[m = matrix(c(1, 2, 3, 4), nrow = 2, ncol = 2)\]
Vectors can be manipulated using various operations, such as indexing, slicing, and concatenation. Matrices are two-dimensional arrays of elements of the same data type. They can be created using the matrix() function. r data structures and algorithms pdf
\[x = c(1, 2, 3, 4, 5)\]