takeFive: takeFive Function

Description Usage Arguments Details Value See Also Examples

Description

Import the basic five dataset files generated from PI.

Usage

1
2
takeFive(explicit, iat, sessions, tasks, demo, source = "MTurk",
  type = "raw_data", strAsFtr = FALSE)

Arguments

explicit

A string for the path of explicit.txt file or the equivalent.

iat

A string for the path of iat.txt file or the equivalent.

sessions

A string for the path of sessions.txt file or the equivalent.

tasks

A string for the path of sessionTasks.txt file or the equivalent.

demo

A string for the path of demographics.txt file or the equivalent.

source

A variable indicating data collection procedure. Possible value: mTurk, PI, PIMH

type

A variable indicating the data stage

strAsFtr

Boolean value for stringAsFactors options in importing data. Default to be FALSE.

Details

This function is used to read the all five original dataset files from PI. It is equal to the read function but name differently as a special function only for PI dataset. An object will be returned with all the raw datasets.

Value

If all five files are imported correctly, there will be an objects return as original datasets, which contain elements: $Explicit, $IAT, $Sessions, $Tasks and $Demo.

See Also

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

Examples

1
2
3
4
 ## Not run: 
     takeFive('~/explicit.txt','~/iat.txt','~/sessions.txt','~/sessionTasks.txt','~/demographics.txt','mTurk')
   
## End(Not run)

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