Description Usage Arguments Value Author(s) References See Also Examples
Import, export and modify lookup tables for the Freetext Matching Algorithm. Currently these functions do not verify that the format of the lookup is correct, but this feature may be added in the future. The format of the lookup tables is specified here: https://github.com/anoopshah/freetext-matching-algorithm-lookups/blob/master/README.md
1 2 3 | importLookup(filename, use_CALIBERfma_dir_R)
exportLookup(lookup, filename)
addtoLookup(lookup, valuelist)
|
lookup |
a |
valuelist |
a list or |
filename |
file name to import or export lookup (either a full file path, or the file name alone if
importing / exporting to the current directory or |
use_CALIBERfma_dir_R |
TRUE if the lookup table should be sought in the folder specified in the option 'CALIBERfma_dir_R'. |
importLookup
and addtoLookup
return the lookup as a data.table. exportLookup
has no return value.
Anoop Shah
https://github.com/anoopshah/freetext-matching-algorithm-lookups/
fmaTest
, doAnalysis
, downloadFMA
1 2 3 4 5 6 | mylookup <- data.table(medcode=1:2, readcode=c('246..00', '22A..00'))
addtoLookup(mylookup, list(medcode=3:4, readcode=c('229..00', '423..00')))
addtoLookup(mylookup,
data.frame(medcode=3:4, readcode=c('229..00', '423..00')))
# any column not supplied is considered to be missing
addtoLookup(mylookup, data.table(medcode=3:4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.