Description Usage Arguments Details Value Examples
Convert character vectors of implicit key-value pairs (e.g., c("key1:
value1", "key2: value2")
), into lists of explicit key-value pairs,
list(key1 = "value1", key2 = "value2")
.
1 | FrameList(x)
|
x |
a character vector with lines of the form |
During the conversion, if Running: x
, then the
x.Sample
and x.Cycle
lines are simplified into Sample
and Cycle
lines. The x: value
line is recoded as
Eprime.LevelName: x_value
. The purpose of this tidying is to force
the same set of key names (eventually, column names) onto frames with
different values for "Running".
When passed a list of character vectors of "key: value"
lines,
a FrameList object (a list of EprimeFrames) is returned. when passed a
single vector vector of "key: value"
lines, a single EprimeFrame
object is returned inside of a FrameList object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | lines <- c("\t*** LogFrame Start ***",
"\tProcedure: FamTask",
"\titem1: bear",
"\titem2: chair",
"\tCorrectResponse: bear",
"\tImageSide: Left",
"\tDuration: 885",
"\tFamiliarization: 1",
"\tFamInforcer: 1",
"\tReinforcerImage: Bicycle1",
"\tFamiliarization.Cycle: 1",
"\tFamiliarization.Sample: 1",
"\tRunning: Familiarization",
"\tFamTarget.RESP: ",
"\tCorrect: True",
"\t*** LogFrame End ***")
# List of 1
# $ :List of 17
# ..$ Eprime.Level : num 2
# ..$ Eprime.LevelName : chr "Familiarization_1"
# ..$ Eprime.Basename : chr "NA"
# ..$ Eprime.FrameNumber: chr "1"
# ..$ Procedure : chr "FamTask"
# ..$ Running : chr "Familiarization"
# ..$ item1 : chr "bear"
# ..$ item2 : chr "chair"
# ..$ CorrectResponse : chr "bear"
# ..$ ImageSide : chr "Left"
# ..$ Duration : chr "885"
# ..$ FamInforcer : chr "1"
# ..$ ReinforcerImage : chr "Bicycle1"
# ..$ Cycle : chr "1"
# ..$ Sample : chr "1"
# ..$ FamTarget.RESP : chr ""
# ..$ Correct : chr "True"
# ..- attr(*, "class")= chr [1:2] "EprimeFrame" "list"
# - attr(*, "class")= chr [1:2] "list" "FrameList"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.