stdzStrength | R Documentation |
This function standardizes the strength entity.
stdzStrength(str, freq)
str |
character vector of extracted strength values |
freq |
character vector of extracted frequency values |
Some strength strings may include multiple values and additional interpretation may be needed. For example ‘2-1’ likely indicates a strength of 2 followed by a strength of 1. Thus a single element may need to be standarized into two elements. This can only happen if the frequency entity is missing or in agreement (‘bid’ for example). See the ‘addl_data’ attribute of the returned vector.
numeric vector
stdzStrength(c('1.5', '1/2', '1/1/1')) stdzStrength(c('1.5', '1/2', '1/1/1'), c('am', 'daily', NA)) stdzStrength(c('1.5', '1/2', '1/1/1'), FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.