Hello,

Starting a new thread since I finally need something different from what I had before.


How can I drop observations of the nace_r2 in the set below?
I am trying, this code right here but it says the type is missmatched.
drop if nace_r2 == "B" | "B06" | "B051" | "B052" | "B06" | "B061" | "B062" | "B07" | "B071" | "B072" | "B08" | "B081" | "B089" | "B0891" | "B0892" | "B0893" | "B0899" | "B09"

Thanks!

* Example generated by -dataex-. To install: ssc install dataex
clear
input int time str2 geo str7 nace_r2
2007 "BE" "B"
2007 "BE" "B05"
2007 "BE" "B051"
2007 "BE" "B052"
2007 "BE" "B06"
2007 "BE" "B061"
2007 "BE" "B062"
2007 "BE" "B07"
2007 "BE" "B071"
2007 "BE" "B072"
2007 "BE" "B08"
2007 "BE" "B081"
2007 "BE" "B089"
2007 "BE" "B0891"
2007 "BE" "B0892"
2007 "BE" "B0893"
2007 "BE" "B0899"
2007 "BE" "B09"