bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

R_Prac-6.r (583B)


      1 # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026
      2 # Repo: https://github.com/notamitgamer/bsc
      3 # License: MIT
      4 
      5 # Program to access List elements, modify a List Element, add items to List, 
      6 # Remove items from a List, length of List.
      7 
      8 l <- list("Amit", 19, "Madhyamgram", 94.5)
      9 print("Initial list:")
     10 print(l)
     11 
     12 l[[4]] = 95.46
     13 print("after modifing last element: ")
     14 print(l)
     15 
     16 l[length(l) + 1] <- "hello"
     17 print("after adding new element:")
     18 print(l)
     19 
     20 l[3] <- NULL
     21 print("after deleting a element: ")
     22 print(l)
     23 
     24 print(paste("length of the list after modifing:", length(l)))
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror