Description Usage Arguments Value See Also Examples
The browse functions allow an existing codelist, a selection or a codelist under construction to be viewed in a spreadsheet and the categories edited manually. This is done by writing the selection of terms to a spreadsheet in the temporary directory. If the edited spreadsheet is saved (keeping it as a .csv file with the same name), the modified data are returned to R.
Note that Read codes may be formatted wrongly when opened in Excel; however the medcode is used as the definitive identifier for the Read term so this is not a problem.
1 2 | browseCodelist(x, spreadsheet = NULL)
browseSelection(x = NULL, spreadsheet = NULL, update_cats = FALSE)
|
x |
for browseCodelist: a codelist; for browseSelection: a selection object,
or an object which can be coerced to selection (e.g. a character vector,
in which case it will automatically be used to select terms using
|
spreadsheet |
for UNIX systems, the spreadsheet program to use (default is |
update_cats |
TRUE if the categories in CALIBER_DICT are to be used (i.e. when generating a new codelist). FALSE if a modified selection is to be returned without affecting the categories in CALIBER_DICT. |
browseCodelist returns the modified codelist (which is also updated by reference).
browseSelection returns the modified selection if update_cats
= FALSE.
If update_cats
= TRUE, browseSelection returns a character string of
instructions for updating the categories of CALIBER_DICT using assigncat
statements. This is used in interactive mode to enable a user to edit the categories
directly in the spreadsheet while recording the instructions for the
modifications in a file.
Interactive mode: exploreCodes
as.codelist
, compare
, CALIBER_DICT
, export
,
process
, as.selection
1 2 3 4 | # setdictionary('read')
# browseSelection('meningitis')
# mi <- as.codelist(termhas('myocardial infarction'))
# browseCodelist(mi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.