saveValuesFromLongFormat: saves "raw only" values

View source: R/longFormatSave.R

saveValuesFromLongFormatR Documentation

saves "raw only" values

Description

Saves values from a specific format

Usage

saveValuesFromLongFormat(entityData, entityKind, stateGroups = NULL,
  lsTransaction, recordedBy, stateGroupIndices = NULL, testMode = FALSE)

Arguments

entityData

A data frame that includes columns:

stateGroupIndex

Integer vector marking the index of the state group for each row

operatorType

String: the type of the operator

unitType

String: the type of the unit

stateID

An integer that is the ID of the state for each value

valueType

A string of "stringValue", "dateValue", or "numericValue"

valueKind

A string value ofthe kind of value

publicData

Boolean: Marks if each value should be hidden

stateVersion

An integer that is the version of the state for each value

stringValue

String: a string value (optional)

codeValue

String: a code, such as a batch code (optional)

fileValue

String: a code that refers to a file, or a path extension of the blueimp public folder (optional)

urlValue

String: a url (optional)

numericValue

Number: a number (optional)

dateValue

A Date value (optional)

valueOperator

String: The operator for each value (optional)

valueUnit

String: The units for each value (optional)

clobValue

String: for very long strings (optional)

blobValue

Anything: no case that exists right now (optional)

concentration

Numeric: concentration, usually of a batch code (optional)

concUnit

String: unit of concentration (optional)

numberOfReplicates

Integer: The number of replicates (optional)

uncertainty

Numeric: the uncertainty (optional)

uncertaintyType

String: the type of uncertainty, such as standard deviation (optional)

comments

String: mainly used for filenames (fileValue is filled with codes) (optional)

codeType

String: type of the codeValue (optional)

codeKind

String: kind of the codeValue (optional)

codeOrigin

String: origin of the codeValue (optional)

entityKind

String: the kind of the state, allowed values are: "protocol", "experiment", "analysisgroup", "subject", "treatmentgroup", "container", "itxcontainercontainer", "itxsubjectcontainer"

stateGroups

A list of lists, each of which includes details about how to save states

lsTransaction

An id of an lsTransaction

recordedBy

String: the username recording the data

stateGroupIndices

An integer vector of the indices to use from stateGroups (others are removed)

testMode

A boolean marking if the function should return JSON instead of saving values

Details

All numericValues of Inf will be have their stringValue set to "infinite" as Inf can't be stored in the database. Code in longFormatSave.R

Value

A list of value objects (lists)


mcneilco/racas documentation built on April 19, 2024, 1:12 p.m.