Description Usage Arguments Value Examples
View source: R/help_cost_analysis_functions.R
Function to get the subset of data compared to a string after trimming the white spaces
1 | return_equal_liststring_listcol(col, the_data, list_str)
|
col |
the form of medication either tablet or patch |
the_data |
the data to be get the subset from |
list_str |
list of strings to be compared |
the subset data
1 2 3 4 | the_data <- as.data.frame(cbind(c("one", "two"), c("tablet", "tablets"),
c("aa", "bb")))
colnames(the_data) <- c("name", "brand_a", "xx")
ans <- return_equal_liststring_listcol(2, the_data, c("tablet", "tablets"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.