Package 'data.iquizoo'

Title: Useful datasets used in IQUIZOO workflow
Description: There will be many dependent dataset for an IQUIZOO workflow to work, such as game configurations of pre-processing functions, abbreviation names, etc. Use a data package to distribute these will be a very great choice.
Authors: Liang Zhang [aut, cre]
Maintainer: Liang Zhang <[email protected]>
License: GPL (>= 3)
Version: 2024.07.14
Built: 2024-11-11 04:29:27 UTC
Source: https://github.com/psychelzh/data.iquizoo

Help Index


Game information

Description

The alternative names for all the games supported by IQUIZOO.COM.

Usage

game_info

Format

A data frame with 350 rows of the following variables:

game_id

Game id, a 64-bit integer.

game_name

Game name in Chinese, matching that in the database.

game_name_ver

Game version name, matching that in the database.

game_name_en

English game name, added by researchers (esp. by me).

game_name_abbr

English game name abbreviated, added by researchers (esp. by me).

game_id_parallel

Parallel form game id. If no parallel form, this will be NA.


Match specific piece of information of games

Description

Match specific piece of information of games

Usage

match_info(x, to, from = "game_id", fail_on_missing = TRUE)

Arguments

x

The known information of games.

to

The name of the column of the information to be matched.

from

The name of the column of the known information.

fail_on_missing

Whether to stop if some of the information is not matched.

Value

The matched information.


Match pre-processing parameters

Description

These complex parameters are stored internally, and users must retrieve them through this function.

Usage

merge_preproc(
  games,
  ...,
  filter_only = FALSE,
  rm_tagged = FALSE,
  name_key = "game_id"
)

Arguments

games

A data.frame contains the games to match parameters.

...

Additional arguments passed to merge().

filter_only

Whether to perform filtering only, i.e., keep only the matched games.

rm_tagged

Whether to remove games with a tagged pre-processing function. Default is FALSE.

name_key

The name of the column to match the games.

Value

A data.frame added pre-processing parameters. Note if there is no match for a game, the matched parameters are empty vectors (e.g., NULL).