survival_mean_class: Relationship between ticket class and survival.

Description Usage Arguments Value Note Examples

View source: R/survival_mean_class.R

Description

This function analyses the relationship between survival rate and ticket class of the passengers.

Usage

1

Arguments

df

The Titanic dataframe which gets imported after running the import_data functions. Raw data as csv from Kaggle, converted to a R dataframe with the function read.csv.

sub_class:

Subset dataframe containing the Class for passengers and their respective survival rate.

sboc

: Variable which stores the the analysis of the mean ticket class

plot_sboc:

Variable to store the graph behind the analysis

sboc_output

: a variable which stores both the analysis and plot results in a list.

Value

the analysis behind the relationship between the ticket class and also the graph based on the relationship.

Note

To use this function by itself, you need to input the Titanic df. The DF can be stored as a variable by using the function import_data().

Examples

1

deephalder/Data_Test documentation built on Feb. 22, 2020, 5:41 a.m.