Question: Problem 3 . Show your R commands and results for following 1 0 questions. For example, x Assign the result of 5 + 7 to

Problem 3. Show your R commands and results for following 10 questions. For example,
x Assign the result of 5+7 to a new variable called x, and print the value of x.
x-5+7
x
## [1]12
Hints can be found from swirl, and intro_to_R.R on Canvas.
Assign the result of 1:6+2:4wh new variable called x, and print the value of x.
Assign a vector that contains 2 repetitions of the vector (1,3,5) to a variable y, and print the value of y.
Print the 1st,2nd, and 3rd element of the vector x.
Change the 1st element of the vector x to 10, hand print x
Divide the 1st,2nd, and 5th element of x by 10, and store the result in the 3rd,4th, and 5th element of x. Print x.
Create a vector containing the capital letters A,B,C,D,E, and F. Store the result in a variable called CapLetters, and print the result
Create a data frame namel newdata with CapLetters, x, and y. Print newdata.
Set the column names of the data frame newdata as follows: Letter, Connt, Int. Print newdata.
Extract the column named Letter from newdata.
Change the values of the column Int of newdata by following numbers: 2,4,6,8,10,12. print newdata.
 Problem 3. Show your R commands and results for following 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!