Introduction to R for Data Science :: Session 3

######################################################## # Introduction to R for Data Science # SESSION 3 :: 12 May, 2016 # Data Science Community Serbia + Startit # :: Goran S. Milovanović and Branko Kovač :: ########################################################   # clear all rm(list=ls());   # It’s time to speak about lists num_vct <- c(2:5) # just another num vector chr_vct <- c(“data”, “science”) # char vector data_frame <- data.frame(x = c(“a”, “b”, “c”, “d”), y = c(1:4)) # simple df   lista <- list(data_frame, num_vct, chr_vct) # and this is a list lista # this is our list   str(lista) # about a list length(lista)   as.list(chr_vct) # another way to create a list   # Lists manipulation names(lista) <- c(“data”, “numbers”, “words”)   lista[3] # 3rd element? lista[[3]] # 3rd element?   is.list(lista[3]) # is…


Link to Full Article: Introduction to R for Data Science :: Session 3