flattenDeepEntity | R Documentation |
Gets values within nested ACAS entities
flattenDeepEntity(entity, desiredAcasCategory,
currentAcasCategory = "experiment", includeFromState = c("id", "lsType",
"lsKind"), includeFromEntity = c("id"))
entity |
an ACAS entity such as a protocol or subject |
desiredAcasCategory |
acasCategory where the desired values are stored |
currentAcasCategory |
acasCategory of the entity provided |
includeFromState |
a character vector of column names to include from the state |
includeFromEntity |
a character vector of column names to include from the state |
flattenDeepEntity
pulls values out of nested objects. This can be used
on any ACAS object that has lsStates that have lsValues. If no information is
needed from the state or entity, includeFromState
and
includeFromEntity
, respectively, can be set to an empty list,
c()
. Columns in includeFromState
will have "state" prepended
and the first letter capitalized, while columns in includeFromEntity
will have acasCategory
prepended and the first letter capitalized. The
list of ACAS categories can be found in racas::acasEntityHierarchy
(acasEntityHierarchy)
## Not run:
experiment <- getExperimentByCodeName("EXPT-00012398", include = "fullobject")
x <- flattenDeepEntity(experiment, "subject", "experiment")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.