Hi,
I have a dataset with 20 variables, each with a name beginning with "c". I would like to drop the data across all those variables for a certain subset of rows. Specifically, I tried:
replace c* = . if patientid==3408 & visitnum==10
and got: too many variables specified
Is there a limit to the number of variables represented by a wildcard, is my syntax just plain wrong, or am I just completely off trying this approach?
I am using v.16. Thank you!
I have a dataset with 20 variables, each with a name beginning with "c". I would like to drop the data across all those variables for a certain subset of rows. Specifically, I tried:
replace c* = . if patientid==3408 & visitnum==10
and got: too many variables specified
Is there a limit to the number of variables represented by a wildcard, is my syntax just plain wrong, or am I just completely off trying this approach?
I am using v.16. Thank you!
Comment