bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_1 / R / Code / R_Code-13.r

R_Code-13.r (397B)


      1 # Create a list named student_record containing a string, 
      2 # an integer, and a numeric vector of two grades. Then, add the 
      3 # logical value TRUE to the end of the list, ensuring the original 
      4 # student_record variable is updated. Print the final list. 
      5 
      6 student_record <- list("Amit Dutta", 95, c(95, 96))
      7 print(student_record)
      8 student_record <- append(student_record, TRUE)
      9 print(student_record)