Description Usage Arguments Value Note Examples
View source: R/survival_mean_class.R
This function analyses the relationship between survival rate and ticket class of the passengers.
1 |
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. |
the analysis behind the relationship between the ticket class and also the graph based on the relationship.
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().
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.