how to remove characters from a column ?

Make a new column called "drug_in_bcx_window" which should be denoted by variable "1" if the drug was given in the two day window and "0" otherwise.

drug_in_bcx_window <- gsub("-", "", mutated)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.