Description Usage Arguments Details Value See Also Examples
Import the basic five dataset files generated from PI.
1 2 |
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. |
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.
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.
~/Requirements
For files naming consistency and dataset cleaning requirements.
1 2 3 4 | ## Not run:
takeFive('~/explicit.txt','~/iat.txt','~/sessions.txt','~/sessionTasks.txt','~/demographics.txt','mTurk')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.