rate_GameFinish: Calculate the finish rate of every game and plot it

View source: R/rate_GameFinish.R

rate_GameFinishR Documentation

Calculate the finish rate of every game and plot it

Description

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.

Usage

rate_GameFinish(
  data,
  idx_game = game_name,
  idx_user = user_id,
  ob_value = game_score_raw,
  plot = FALSE
)

Arguments

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 FALSE

Value

A tibble contains following values:

idx_game

index of game, will be the same as input.

finish_rate

finish rate of the games


Blockhead-yj/report.iqz documentation built on March 18, 2022, 5:30 a.m.