Problem: Access the elements in a Data Frame Solution: We need to select the elements from a data frame with the […]
Category: R-Programming
Creating a Data Frame in R
A data frame is a matrix-like structure to store data tables. It is a list of vectors of equal length […]
Installing RStudio on (Mac) OS X
Vanilla Version of R GUI interface is not that appealing and it is a little cumbersome. So, an alternative is […]
Adding a row or a column to an existing Matrix in R
Problem1: Add a row to an existing Matrix Solution: We can use the function rbind() to add a row to […]
Assignment on Matrix in R
Let’s use an example of dinner plans for this assignment. We have done this with Vectors. But this time, we […]
Accessing the Matrix Elements in R
Problem: Access the elements of a Matrix Solution: We can use the square brackets ( [] ) to select one […]