Answered step by step
Verified Expert Solution
Question
1 Approved Answer
answer all parts 1 th In doing this ass1gnwent, you will deronstrate sose basic functionality of R. Use what you learned in lecture to conplete
answer all parts
1 th In doing this ass1gnwent, you will deronstrate sose basic functionality of R. Use what you learned in lecture to conplete this assignnent. - For each question, type youn answer on the line that follows the question prompt. = QI - Use R to tuitiply 36 by 27 . 3627 7 Q . - In a single ine, create a vector that consists of the numbers 1,6,7,10, and 6 , name it vec, and print its contents. vec \& - c (1,6,7,10,6); vec 9 in - Use the length function on vec to return the nunber of entries in vec. 10 Iength(vec) 12mean(vec) 13 if Q5 - Mdd 2 to every entry of vec. 14 vec \&n vec + c(2,2,2,2,2) 15 . 60 - Type a line of code that returns Teut for an entry of vec belng equal to 6 and a Fatse otherndse. Q7 - Nou use the sum function on your logical vector from 06 to count the number of 65 in vec. V QB - Use the which function on vec to return the position(s) of 6 within the vector. n. 09 - In a single statenent, take the natural log of every entry of vec, nane this object logvec, and print the results.. A Q1e - Use the exp function on logvec to return the ram values of vec 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