flattenEntity: Flattens ACAS Entities

View source: R/JSON_library.R

flattenEntityR Documentation

Flattens ACAS Entities

Description

Gets values from a given entity

Usage

flattenEntity(entity, acasCategory = NULL, includeFromState = c("id",
  "lsType", "lsKind"), includeFromEntity = c("id"))

Arguments

entity

an ACAS entity such as a protocol or subject

acasCategory

one of the following: "protocol", "experiment", "analysisgroup", "treatmentgroup", "subject"

includeFromState

a character vector of column names to include from the state

includeFromEntity

a character vector of column names to include from the state

flattenEntity changes the json objects that were good for Java into an R data frame. 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.


mcneilco/racas documentation built on Aug. 30, 2024, 9:27 p.m.