Page 228 - Data Science class 11
P. 228
Output:
6.8.4 merging Lists
You can merge many lists into one list by placing all the lists inside one list() function.
Example
Enter the following code snippet:
# Create two lists.
list1 <- list(80,90,100)
list2 <- list("Jan","Feb","March")
# Merge the two lists.
merged.list <- c(list1,list2)
# Print the merged list.
print(merged.list)
On execution of the above code, the following result is shown:
226 Touchpad Data Science-XI

