getOrderFromSeq | R Documentation |
Get sequence number (position) within a larger structure (turn, prosodic sentence, etc.) from the ID of that structure, or the other way around
getOrderFromSeq(id, isWord = T)
getSeqFromOrder(order)
id |
The ID of the larger structure within which you would like to find the position of an individual component. For example, if you want to find the position of a word within a prosodic sentence from the prosodic sentence ID. |
isWord |
Vector of logical values indicating whether something is to be counted as word. |
order |
The position of an individual component within a larger structure. |
A vector of sequence values within that structure. For example, if you are working with the tokenDF and id
gives the prosodic sentence ID, then this function will return the position of a token within a prosodic sentence.
A vector of either order values within the structure . For example, if you are working with the tokenDF
and id
gives the prosodic sentence ID, then getOrderFormSeq
will return the position of a token within a prosodic sentence. If order
gives the position within the prosodic sentence, then getSeqFromOrder
will return the prosodic sentence sequence.
sbc007$tokenDF = addFieldLocal(sbc007$tokenDF, "tokenOrder2", getOrderFromSeq(unitSeq))
sbc007$tokenDF = addFieldLocal(sbc007$tokenDF, "pSent", getSeqFromOrder(pSentOrder))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.