Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Those are R questions 2. Write a R function to find and return the maximum and the minimum value points) 4. Titanic Casualties - Use
Those are R questions
2. Write a R function to find and return the maximum and the minimum value points) 4. Titanic Casualties - Use the standard 'Titanic' dataset which is part of R Base (a) Use an appropriate apply futuction to get the sum of males vs females aboard.(10 points) (b) Get a table with the sum of sturvivors vs sex (10 points) (c) Get a table with the sum of passengers by sex vs age.(10 points) 1. Write a R function to create a sequence of numbers from 20 to 50 and find the mean of numbers from 20 to (B) and sam of numbers froms 51 to 91 . This functhon returns a list objects that includes the result of each operation (20 points) 3. Use: three: 'apply' family fanctbons to get the minimum values of each column of the 'mintars'. dataset (hint: 'lapply', 'sapply'. 'mapply'). (a) Store each output in a separate object ('l', ' 8 ', 'm') and get the outputs. 10 points) (b) Put the three outputs ' l,,s ', ' m ' th the list 'listobjects' (10 points) (c) Use a suitable 'apply' fanction to get the class of each of the three list elements in 'listobjects'(10 points) (d) Name the output classes for each of the three fumctions usexd in the exercise(10 points) 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