R_Code-13.r ​
Metadata ​
- Author — Amit Dutta (amitdutta4255@gmail.com)
- Last updated — 20 Mar 2026
- License — MIT
Problem Statement ​
Problem Statement
Create a list named student_record containing a string, an integer, and a numeric vector of two grades. Then, add the logical value TRUE to the end of the list, ensuring the original student_record variable is updated. Print the final list.
Source Code ​
Printing the code
To print this file, open it on GitHub and click Raw before printing, or use the Download Raw button above and print directly from that page.
r
# Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026
# Repo: https://github.com/notamitgamer/bsc
# License: MIT
# Create a list named student_record containing a string,
# an integer, and a numeric vector of two grades. Then, add the
# logical value TRUE to the end of the list, ensuring the original
# student_record variable is updated. Print the final list.
student_record <- list("Amit Dutta", 95, c(95, 96))
print(student_record)
student_record <- append(student_record, TRUE)
print(student_record)1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13