Simple function which gets the mean of the specified target variable in the
data.frame
df. This is used to overlay on EDA plots.
1 | get_target_line(df, target_var)
|
df |
The input |
target_var |
A string with the name of the target variable |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.