List and Array in R language
In this post we will see various method of list and Array. In previous post we Saw about vector and matrix, I hope this will be also easy for you. Let's start. List: We can say list and vector are pretty much similar but the only difference and the important one is that vector consist of same data element where as list consist of different types of data element. To create a list we use a function called list() Here list take input from vector only but of different type at same time. So, make it clear let's see the example: Name<- c("Adam","Steve","Tom","Robert") Rollno <- c (1,2,3,4) Mylist<- list(Name, Rollno) print (Mylist) Output: [1] "Adam" "Steve" "Tom" "Robert" [1] 1 2 3 4 So, Over here we tooked different type of data element in list via vector only, but this functionality is not allowed in vector. Array: Array is collection of...