Description Usage Arguments Details Value Examples
This function takes a dataframe of clinical codes and gives a vector of keywords, sorted by frequency
1 2 | codelist_keywords(codelist, keyword_column = "description",
extra_stopwords = NULL)
|
codelist |
a dataframe of clinical codes, such as downloaded using the get_ClinicalCodes function |
keyword_column |
The column of the dataframe to extract keywords from |
extra_stopwords |
an optional character vector of further stopwords to remove |
All terms are converted to lower case. Common stopwords, whitespace and punctuation are removed Optional extra_stopwords vector
character vector of keywords, sorted by frequency in the list
1 2 3 4 5 6 7 | ## Not run:
# Get codelist from url:
angina_codes <- get_ClinicalCodes(
url = "https://clinicalcodes.rss.mhs.man.ac.uk/medcodes/article/6/codelist/angina/download/")
codelist_keywords(angina_codes, extra_stopwords = c("good", "poor", "[x]"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.