subset an additional variable and append it to the previous one in R
问题 I have a function that subset s what (i.e., a variable) user requests out of this dataset. The function works perfect. But I was wondering if there might be a way that in addition to what user requests, the function always subset entries that contain control == TRUE and append those to what the user has requested. For example, suppose user wants to subset entries with type == 4 . In this dataset, there are 4 such entries. As reproducible code and data below show, this is done easily BUT there