Posts

Showing posts from July, 2025

Unit-2

  Lists: Creating Lists, General List Operations, List Indexing Adding and Deleting List Elements, Getting the Size of a List, Extended Example: Text Concordance Accessing List Components and Values Applying Functions to Lists, DATA FRAMES: Creating Data Frames, Accessing Data Frames, Other Matrix- Like Operations R List R list is the object which contains elements of different types – like  strings, numbers, vectors and another list  inside it. R list can also contain a matrix or a function as its elements. The list is created using the  list()  function in R. In other words, a list is a generic vector containing other objects. For example :      vec <- c(1,2,3)         char_vec <- c("Hadoop", "Spark", "Flink", "Mahout")           logic_vec <- c(TRUE, FALSE, TRUE, FALSE)           out_list <- list(vec, char_vec, logic_vec)       ...