Question
R STUDIO The R file will consist of all the code and should be executable (you should use R script). Copy your R script into
R STUDIO
The R file will consist of all the code and should be executable (you should use R script).
Copy your R script into a word document, submit both R, and word (doc/docx) files.
All the answers, other than the actual codes, are to be noted as comments
Name the file LastName_Assignment1 with appropriate file extension (.doc and .R)
Your script should follow the format below:
#1 Basic operations, assignments
#a
x <- 4
y <- 5
z <- x+y
z
#output: 9
#b
x <- 1
y <- 5
z <- x+y
z
Question 1: Lists
Consider the below list:
< ( = : , = , = )
a) Add an element d to the list with the value as New Element
b) Write the code to delete element b from the list
c) Extract the second entry of the first component a and note the output as a comment
d) Extract the first two components and print the list
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started