# NOT RUN {
## create a character vector
medical_text <- c(
"No, it isn't possible to predict anything before the result of your biopsy is received.",
"Thank you for the nice reply! Very thoughtful answer that did ease my fears!",
"Can't help regards the meds. Just want to give support.")
## get the medical glossaries counts from a character vector
count_medical_terms(text = medical_text)
## creat a data frame with a character vector named "text"
df <- data.frame(
id = c(1, 2, 3),
text = c("No, it isn't possible to predict anything before the result
of your biopsy is received.",
"Thank you for the nice reply! Very thoughtful answer that
did ease my fears!",
"Can't help regards the meds. Just want to give support."),
stringsAsFactors = FALSE
)
## get the medical glossaries counts from a data frame with "text" variable
count_medical_terms(df)
# }
Run the code above in your browser using DataLab