unFin: unFinished Function

Description Usage Arguments Details Value See Also Examples

Description

Main data cleaning function for PI datasets.

Usage

1
unFin(sortedPack)

Arguments

sortedPack

A PI object, included subfields like Explicit, Sessions, Tasks, IAT and Demo which representing the original five datasets(required to process) and further addon variables like participatedID, participatedNum etc(optional).

Details

This is one of the main function of GMDPP package. It will take the sorted data object and automatically detect the unfinished and duplicated cases. Unfinished cases will be cleaned out by default, with cases' total number and IDs recorded. Duplicated cases will be counted and a ratio will be reported to screen as a reference for further data cleaning. You can choose to automatically clean out all the cases with duplicated data(suggested when the percetage of duplication is low and you get enough data for your analysis), or stop the auto cleaning and start cleaning duplicated data with the information returned(semi-cleaned data object and the duplicatedNum and duplicatedID variables)

Value

If it works correctly, there will be an objects return as original datasets and extra elements for reference. They are: $Explicit, $IAT, $Sessions, $Tasks and $Demo for actual datasets, and $participant_id $participatedNum $completedID $completedNum etc.

See Also

~/Requirements For files naming consistency and dataset cleaning requirements.

Examples

1
2
3
4
5
6
 ## Not run: 
		rawData <- takeFive('~/explicit.txt','~/iat.txt','~/sessions.txt','~/sessionTasks.txt','~/demographics.txt','mTurk')
     sortedData <- prepare(rawData)
     cleanse(sortedData)
   
## End(Not run)

Diheng/GMDPP documentation built on May 6, 2019, 2:13 p.m.