return_equal_liststring_listcol {packDAMipd} | R Documentation |
Function to get the subset of data compared to a string after trimming the white spaces
Description
Function to get the subset of data compared to a string after trimming the white spaces
Usage
return_equal_liststring_listcol(col, the_data, list_str)
Arguments
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 |
Value
the subset data
Examples
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"))
[Package packDAMipd version 1.1.0 Index]