Description Usage Arguments Details Author(s) References See Also Examples
Exports the singlewords, multiwords, patterns and lookups dictionaries to .csv files.
1 2 3 4 5 6 7 8 9 |
x |
An R object of class |
filename |
Name of .csv file to export to. |
... |
Generic arguments for |
Exports the dictionary as a comma separated values text file.
Anoop Shah
Shah AD, Martinez C. An algorithm to derive a numerical daily dose from unstructured text dosage instructions. Pharmacoepidemiol Drug Saf 2006; 15(3): 161-166. doi: 10.1002/pds.1151 http://onlinelibrary.wiley.com/doi/10.1002/pds.1151/
as.drugdose_singlewords
, as.drugdose_multiwords
,
as.drugdose_patterns
, as.drugdose_lookups
,
addterm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Testing singlewords roundtrip
data(singlewords)
old_singlewords <- as.drugdose_singlewords(singlewords)
export(old_singlewords, paste(tempdir(),
'singlewords.csv', sep = '/'))
new_singlewords <- as.drugdose_singlewords(paste(tempdir(),
'singlewords.csv', sep = '/'))
str(new_singlewords)
# Testing multiwords roundtrip
data(multiwords)
old_multiwords <- as.drugdose_multiwords(multiwords)
export(old_multiwords, paste(tempdir(),
'multiwords.csv', sep = '/'))
new_multiwords <- as.drugdose_multiwords(paste(tempdir(),
'multiwords.csv', sep = '/'))
str(new_multiwords)
# Testing patterns roundtrip
data(patterns)
old_patterns <- as.drugdose_patterns(patterns)
export(old_patterns, paste(tempdir(),
'patterns.csv', sep = '/'))
new_patterns <- as.drugdose_patterns(paste(tempdir(),
'patterns.csv', sep = '/'))
str(new_patterns)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.