Question
DO the following using R statistical tool please. Thank you. Q-1 A) Create vector with value 5,10,15,20,25,30 and write code to print values with greater
DO the following using R statistical tool please. Thank you. Q-1 A) Create vector with value 5,10,15,20,25,30 and write code to print values with greater than 20. B) Create logical vector TRUE, FALSE, TRUE, FALSE, FALSE, TRUE and write code to print values of vector provided in Q-1A by applying given logical vector. C) Create a list from vectors in Q-1 A & B, write a code to access 3rd value of 2nd member in the list. Q-2 A) Create user define a function which matrix as an input. Transpose input matrix, multiply the matrix by 3 and output matrix B) Create user define a function in R which takes a numeric vector as an input and print output as sum, mean, median and standard deviation. Add a logical variable as vector length .
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