return_equal_str_col: Function to get the subset of data compared to a string after...

View source: R/help_cost_analysis_functions.R

return_equal_str_colR 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_str_col(col, the_data, the_str)

Arguments

col

the form of medication either tablet or patch

the_data

the data to be get the subset from

the_str

the string to be compared

Value

the subset data

Examples

the_data <- as.data.frame(cbind(c("one", "two"), c("a", "b")))
colnames(the_data) <- c("name", "brand")
ans <- return_equal_str_col(2, the_data, "a")

packDAMipd documentation built on May 29, 2024, 3:18 a.m.