View source: R/rate_GameFinish.R
rate_GameFinish | R Documentation |
This function is used to check the finish rate of multiple games,
since there is always some missing value in the iquizoo data. To get a more
complete data, it is useful to drop some games that finish rate is too low.
Given a data.frame
contains essential columns (usually "game_name",
"user_name"/"user_id", and "game_score_raw"), this function will calculate
the finish rate of every game and plot it if needed.
rate_GameFinish( data, idx_game = game_name, idx_user = user_id, ob_value = game_score_raw, plot = FALSE )
data |
Data.frame, contains the essential data(index of game, index of user, observed value). |
idx_game |
Unquoted expression, colname of the unique index of game, default game_name |
idx_user |
Unquoted expression, colname of the unique index of user, default user_id |
ob_value |
Unquoted expression, colname of the observed value, default game_score_raw |
plot |
Logical value indicate if plot the finish rate or not, default |
A tibble contains following values:
idx_game |
index of game, will be the same as input. |
finish_rate |
finish rate of the games |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.