Description Usage Arguments Value Examples
This function binds columns containing either the lemma of the entity or the UMLS concept unique identifier (CUI) with frequencies to a data frame. The resulting data frame can be used to train a machine learning model or for additional feature selection.
1 2 3 4 5 6 7 | bind_clinspacy(
clinspacy_output,
df,
cs_col = NULL,
df_id = NULL,
subset = "is_negated == FALSE"
)
|
clinspacy_output |
A data.frame or file name containing the output from
|
df |
The data.frame to which you would like to bind the output of
|
cs_col |
Name of the column in the |
df_id |
The name of the |
subset |
Logical criteria represented as a string by which the
|
A data frame containing the original data frame as well as additional column names for each lemma or UMLS concept unique identifer found with values containing frequencies.
1 2 3 4 5 6 7 | ## Not run:
mtsamples <- dataset_mtsamples()
mtsamples[1:5,] %>%
clinspacy(df_col = 'description') %>%
bind_clinspacy(mtsamples[1:5,])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.