logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Ellie StantonPhilosophy
(5/5)

745 Answers

Hire Me
expert
Imraan KhanManagement
(5/5)

685 Answers

Hire Me
expert
Sandeep KumarStatistics
(/5)

969 Answers

Hire Me
expert
Abhilekh Nath DasComputer science
(/5)

548 Answers

Hire Me
R Programming
(5/5)

Make two new dataframes : a subset of male survivors, and a subset of female survivors

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Read the Train dataset.

Make two new dataframes : a subset of male survivors, and a subset of female survivors. [Hint: Use command ‘subset’] Based on question 2, what was the name of the oldest surviving male?

In what class was the youngest surviving female? Hint: use which.max, which.min on the subsets you just created. Take 15 random names of passengers from the dataset, and sort them alphabetically. Hint: use command ‘sample’ and then ‘sort’.

Convert the ’Name’ (passenger name) variable to a ’character’ variable, and store it in the dataframe. How many observations of ’Age’ are missing from the dataframe? Hint: use ‘summary’ Make a new variable called ’Status’, based on the ’Survived’ variable already in the dataset.

For passengers that did not survive, Status should be ’dead’, for those who did, Status should be ’alive’. Make sure this new variable is a factor Count the number of passengers in each class (1st, 2nd, 3rd) Using grep, find the six passengers with the last name ’Fortune’.

Make this subset into a new dataframe. Did they all survive? [note: grep is the R command for regular expression] For what proportion of the passengers is the age unknown? Was this proportion higher for 3rd class than 1st and 2nd? Hint: First make a subset of the dataframe where age is missing

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

392 Experts Online