Problem: Naming the elements of a Matrix Solution:We can add names for the rows and the columns of a matrix. Adding […]
Category: R-Programming
Creating a Matrix in R
A matrix is a two-dimensional array in R. It contains the collection of elements of the same data type (numeric, […]
Assignment on Vectors in R
Just now, I thought of an assignment using the concepts I learned in Vectors. Let’s start! Problem: Let’s plan what […]
Accessing the Vector Elements in R
Problem: Access the Elements of a Vector Solution: Elements of a Vector can be accessed using indexing. The [ ] brackets are used […]
Name the Elements Of a Vector in R
Problem: Naming the elements of a Vector Solution: To give a name to the elements of a vector, we can […]
Create a Vector in R
Vectors are one-dimension arrays that can hold numeric data, character data, or logical data, but not a mixture of different […]