survivor_age_mean: Survivor Age Mean

Description Usage Arguments Value Note Examples

View source: R/survivor_age_mean.R

Description

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.

Usage

1

Arguments

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

Value

The mean age of the survivors and the most proobable age of survival and the graphical representation between age and survival.

Note

To use this function by itself, you need to first run import_data() function.Then run the functions by writing survivor_age_mean(df)

Examples

1

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