Question
Please help me with some Statistics Questions using R code to solve. Thank you so much 4.Ask user to enter as much as number. To
Please help me with some Statistics Questions using R code to solve. Thank you so much
4.Ask user to enter as much as number. To finish entering the numbers, the user has to writestop. When all the values available, calculate the mean, variance, standard deviation, minimum and maximum of the given values.
Hint: an empty vector by usingvector(). You can calculate the mean, variance, standard deviation, minimum and maximum of the given values by usingmean, var, sd, max and min, respectively.
5 How to get thenthsmallest value of given array? (Use for loop for this problem. Do not use existing codes and sort functions.
For example, in given list [11,23,58,31,56,77,43,12,65,19], if n is defined as 3. The program will print 19.
6.How to get thenthlargestevenvalue of given array? (Usewhile loop and if-statementfor this problem. Do not use existing codes.For example, in given list [10,36,58,31,56,77,43,12,65,19], if n is defined as 2. The program will print 56.
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