Hello,
I have a dataset where I want to keep string variables which include a certain word or another word or another and so on. The string variables "affiliatie" are names of Universities and I only want to keep those in the Netherlands and Belgium.
Using : keep if strpos(affiliatie, "Erasmus" | "Antwerpen" | "Maastricht" etc etc (29 in total). gives the error type mismatch. Does anyone know how to solve this?
Ciao,
Chiara
I have a dataset where I want to keep string variables which include a certain word or another word or another and so on. The string variables "affiliatie" are names of Universities and I only want to keep those in the Netherlands and Belgium.
Using : keep if strpos(affiliatie, "Erasmus" | "Antwerpen" | "Maastricht" etc etc (29 in total). gives the error type mismatch. Does anyone know how to solve this?
Ciao,
Chiara
Comment