Description Usage Arguments Value Note Examples
View source: R/survivor_age_mean.R
This function analyses and returns the mean age among the people who survived.Its also gives the age group, which is most likely to survive.
1 |
df: |
The titanic train data set which we imported and converted to df dataframe. |
sboa |
Variable to store the output of the analysis. |
plot_age |
: subset to store a dataframe containting age and survival rate. |
graph_age |
: variable containing the graph representing the relationship between age and survival rate |
The mean age of the survivors and the most proobable age of survival and the graphical representation between age and survival.
To use this function by itself, you need to first run import_data() function.Then run the functions by writing survivor_age_mean(df)
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.