R_Code-1.r ​
Metadata ​
- Author — Amit Dutta (amitdutta4255@gmail.com)
- Last updated — 19 Mar 2026
- License — MIT
Problem Statement ​
Problem Statement
R allows you to assign values to variables in three different ways.
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: 19 Mar 2026
# Repo: https://github.com/notamitgamer/bsc
# License: MIT
# R allows you to assign values to variables in three different ways.
# Write three lines of code assigning the string "R is fun" to a variable
# using Simple Assignment, Leftward Assignment, and Rightward Assignment.
simple = "R is fun"
left <- "R is fun"
"R is fun" -> right1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12