Skip to contents

Extract an attribute of a data.frame (inNodeMap, fieldaccess, updateFunct), or set it.

Usage

getRezrDFAttr(df, attr, fields = "")

fieldaccess(df, fields = "")

updateFunct(df, fields = "")

inNodeMap(df, fields = "")

setRezrDFAttr(df, attr, fields = "", value)

updateFunct(df, fields = "") <- value

fieldaccess(df, fields = "") <- value

inNodeMap(df, fields = "") <- value

Arguments

df

The rezrDF whose field access attributes you want to see.

attr

The attribute that you want to extract.

fields

The field whose access attribute you want to see. If left blank, a vector containing all the attributes is output.

value

The value that you want to set it to.

Value

The value of the attribute you want to extract (for extract functions), and the DF with the value set (for set functions).

Examples

updateFunct(sbc007$unitDF, "docTokenSeqLast")
#> function(df, rezrObj) updateLowerToHigher(df, rezrObj, address, fkeyAddress, action, field, fkeyInDF, seqName)
#> <environment: 0x000002d7bd1d5f50>
#> attr(,"class")
#> [1] "updateFunction" "function"      
#> attr(,"deps")
#> [1] "entryDF/docTokenSeq"
#If you want to be able to edit the timestamps manually
fieldaccess(sbc007$unitDF, c("unitEnd", "unitStart")) = c("flex", "flex")
inNodeMap(sbc007$unitDF)
#>                 id                doc          unitStart            unitEnd 
#>              "key"          "primary"          "primary"          "primary" 
#>            unitSeq                pID             unitId          unitStart 
#>          "primary"          "primary"           "tagmap"           "tagmap" 
#>              docId            unitDur           pSentSeq   unitDurSkipPause 
#>           "tagmap"           "tagmap"           "tagmap"           "tagmap" 
#>            unitEnd unitStartSkipPause           sequence        participant 
#>           "tagmap"           "tagmap"           "tagmap"           "tagmap" 
#>            turnSeq               text         transcript   docTokenSeqFirst 
#>           "tagmap"               "no"               "no"               "no" 
#>    docTokenSeqLast 
#>               "no"