Question
All of the questions must be answered by R language. givenarray
All of the questions must be answered by R language.
givenarray <- c(34,87,56,97,23,65,76,35,21,79,88,99,54)
1.
Try to create a function which calculates the mod of a given array
to find mod without built-in function(mod())
use unique(), tabulate() functions
2.
Calculate the standard deviation of given array
without using sd() function.
use sqrt() function
3. Create a barplot with given array and label the x axis with the letters given below
x, y, z, a, b, c, d, p, o, c, e, m, n
4. outliers can be found by (min - (1.5*IQR)) or (max + (1.5*IQR)) Now add two outlier values to given array and re-draw the boxplot
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