Question: # In doing this assignment, you will demonstrate some basic functionality of R . Use what you learned in lecture to complete this assignment. For
# In doing this assignment, you will demonstrate some basic functionality of
Use what you learned in lecture to complete this assignment.
For each question, type your answer on the line that follows the question proms
# CG Q # Use R to multsply by
# CG Q # In a single line, create a vector that consists of the numbers
CG Q # Use the length function on vec to return the number of entries in vec.
# CG Q # Use the mean function on vec to find the average of the numbers in vec.
# CG Q # Add to every entry of vec.
CG Q # Type a line of code that returns TRUE for an entry of vec being equal
# CG # Now use the sum function on youx logical vector from Q to count the nu
# CG Q # Use the which function on vec to return the positions of within the
# CG Q # In a single statement, take the natural of every entry of vec, name
# CG Q # Use the exp function on logvec to return the raw values of vec.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
