Package: peekbankr 0.2.3.3

peekbankr: Accessing the Peekbank Database and working with Peekbank data

Collection of tools for working with peekbank, an open repository for developmental eye-tracking data.

Authors:Mika Braginsky [aut, cre], Kyle MacDonald [aut], Michael Frank [aut]

peekbankr_0.2.3.3.tar.gz
peekbankr_0.2.3.3.zip(r-4.5)peekbankr_0.2.3.3.zip(r-4.4)peekbankr_0.2.3.3.zip(r-4.3)
peekbankr_0.2.3.3.tgz(r-4.5-any)peekbankr_0.2.3.3.tgz(r-4.4-any)peekbankr_0.2.3.3.tgz(r-4.3-any)
peekbankr_0.2.3.3.tar.gz(r-4.5-noble)peekbankr_0.2.3.3.tar.gz(r-4.4-noble)
peekbankr_0.2.3.3.tgz(r-4.4-emscripten)peekbankr_0.2.3.3.tgz(r-4.3-emscripten)
peekbankr.pdf |peekbankr.html
peekbankr/json (API)

# Install 'peekbankr' in R:
install.packages('peekbankr', repos = c('https://mikabr.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/peekbank/peekbankr/issues

On CRAN:

Conda:

4.68 score 3 stars 46 scripts 34 exports 72 dependencies

Last updated 2 months agofrom:2ad558e469. Checks:1 OK, 8 ERROR. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKMar 04 2025
R-4.5-winERRORMar 04 2025
R-4.5-macERRORFeb 02 2025
R-4.5-linuxERRORMar 04 2025
R-4.4-winERRORMar 04 2025
R-4.4-macERRORMar 04 2025
R-4.4-linuxERRORMar 04 2025
R-4.3-winERRORMar 04 2025
R-4.3-macERRORMar 04 2025

Exports:append_relative_cdi_scorescleanup_cdi_dataconnect_to_peekbankds.add_aoisds.get_json_fieldsds.get_peekjsonds.get_processed_datads.get_raw_datads.is_table_requiredds.list_coding_methodsds.list_ds_tablesds.list_language_choicesds.map_columnsds.normalize_timesds.put_processed_datads.resample_timesds.rezero_timesds.validate_for_db_importds.validate_tableds.validate_trial_uniqueness_constraintget_administrationsget_aoi_region_setsget_aoi_timepointsget_datasetsget_db_infoget_sql_queryget_stimuliget_subjectsget_trial_typesget_trialsget_xy_timepointslist_peekbank_tablespopulate_cdi_percentilesunpack_aux_data

Dependencies:askpassbitbit64blobcachemclicliprcolorspacecpp11crayoncrulcurlDBIdbplyrdplyrfansifarverfastmapfsgenericsggplot2gluegtablehmshttpcodehttrisobandjsonlitelabelinglatticelifecyclelubridatemagrittrMASSMatrixmemoisemgcvmimemunsellNCmiscnlmeopensslosfrpillarpkgconfigplogrprettyunitsprogresspurrrR6RColorBrewerRcppreaderreadrrlangRMariaDBscalesstringistringrsystibbletidyrtidyselecttimechangetriebeardtzdburltoolsutf8vctrsviridisLitevroomwithr

Readme and manuals

Help Manual

Help pageTopics
Adds a relative cdi score indicating the percentage of total achievable points the subject got on each given measureappend_relative_cdi_scores
Checks cdi data for inconsistencies, warns about them, and fixes themcleanup_cdi_data
Connect to Peekbankconnect_to_peekbank
Add AOIs to an xy dataframeds.add_aois
Fetching the list of field names and requirements in each table according to the schema json fileds.get_json_fields
parse json file from peekbank github into a dataframeds.get_peekjson
Download peekbank processed dataset from OSFds.get_processed_data
Download specific peekbank dataset from OSFds.get_raw_data
Check if a certain table is required according to schemads.is_table_required
Get the coding method list from json schema fileds.list_coding_methods
List the tables required based on coding methodds.list_ds_tables
List current allowed language choices for db importds.list_language_choices
Function for mapping raw data columns to processed table columnsds.map_columns
sets the starting point of a given trial to be zerods.normalize_times
Put processed data for specific peekbank dataset on OSFds.put_processed_data
This function resample times to be consistent across labs.ds.resample_times
sets the starting point of a given trial to be zerods.rezero_times
check all csv files against database schema for database importds.validate_for_db_import
Check if a dataframe/table is compliant to peekbank json before database importds.validate_table
Check if within aoi_timepoints table, there is no duplication in all the administration_ids associated with each individual trial_idds.validate_trial_uniqueness_constraint
Get administrationsget_administrations
Get AOI region setsget_aoi_region_sets
Get AOI timepointsget_aoi_timepoints
Get datasetsget_datasets
Get information on database connection optionsget_db_info
Run a SQL Query script on the Peekbank databaseget_sql_query
Get stimuliget_stimuli
Get subjectsget_subjects
Get trial typesget_trial_types
Get trialsget_trials
Get XY timepointsget_xy_timepoints
List of peekbank tableslist_peekbank_tables
Populate the provided cdi data with percentile values for that specific age, instrument_type, measure and language. Loosely based on the work from this repo https://github.com/kachergis/cdi-percentiles/tree/main by George Kachergis and Jess Mankewitz with advice from Virginia Marchman.populate_cdi_percentiles
Unpack the json sting in the *_aux_data column and turns it into a nested R listunpack_aux_data