Skip to contents

The goal of data.iquizoo is to provide datasets for IQUIZOO workflows.

Installation

You can install the development version of data.iquizoo from GitHub with:

# install.packages("devtools")
devtools::install_github("iquizoo/data.iquizoo")

Or you can install from r-universe with:

install.packages("data.iquizoo", repos = c(getOption("repos"), "https://iquizoo.r-universe.dev"))

Example

The main parts of the package is a dataset: game_info containing basic information about games. Here is a simple example:

library(data.iquizoo)
# for long-int identifiers
requireNamespace("bit64", quietly = TRUE)
# show the first few rows of the data
head(game_info)
#>           game_id    game_name game_name_ver       game_name_en game_name_abbr
#> 1 576947514081349   2-back任务                    Two Back CAMP     Nback2CAMP
#> 2 770528428376709 CMAT数学测试                                                
#> 3 305067065282821  Sandia推理A         1.0.0 Sandia Reasoning A        SandiaA
#> 4 305067236323525  Sandia推理B               Sandia Reasoning B        SandiaB
#> 5 306923687555141  Sandia推理C               Sandia Reasoning C        SandiaC
#> 6 306923906232453  Sandia推理D               Sandia Reasoning D        SandiaD
#>   game_id_parallel
#> 1             <NA>
#> 2             <NA>
#> 3             <NA>
#> 4  305067065282821
#> 5  305067065282821
#> 6  305067065282821

Some functions are also provided to help you work with the datasets. For example:

library(data.iquizoo)
# some other useful functions
game_id <- bit64::as.integer64(305067065282821)
match_info(game_id, to = "game_name")
#> [1] "Sandia推理A"
merge_preproc(data.frame(game_id = game_id))
#>           game_id     prep_fun  tag input extra
#> 1 305067065282821 countcorrect <NA>  NULL  NULL

Contributing

We develop with the github flow for its simplicity of this package.