I want to subset a data frame using a the subject ID column. Each subject ID is unique but i only want a subset and i want to keep all the other columns of data associated with that subset . Is there an elegant wat to do this? For example:
DF1 had IDs 3,4,5,6,7,8,9,10...100, I want DF2 that has IDs 5....60, 65, 43, etc.
Ok i forgot add that the patient IDs have both letters and numbers - i'm getting this error.
Error: unexpected symbol in "Patient_ID_list <- c(045071P"