Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with #'s 1&2 Tasks 1. Create a function called even.count. The function should take an integer vector as its argument and should output

image text in transcribed

Please help with #'s 1&2

Tasks 1. Create a function called even.count. The function should take an integer vector as its argument and should output the number of even numbers from the vector. 2. Create a loop to compute the mean of each column in mtcars. Use the apply() function to accomplish the same task. 3. Create a loop that will assign all uppercase and lowercase letters of the alphabet in a vector. The output should be as follows: "A" "a" "B" "" "C" "c"...and so on until "Z" "z" The LETTERS and letters objects will give a vector of uppercase and lowercase letters of the alphabet, respectively. 4. Create a loop to compute the number of unique values in each column of the iris data frame. The data set iris is built into R. Just type iris and you will have access. You should store your results in a vector and display the results

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

10-5 Explain each of the main grounds for dismissal.

Answered: 1 week ago