Hi
I want to drop all observations which don't have date in 2 string variables:
for example
if A = empty and B=empty --> drop
if A or B != empty --> dont drop
I tried drop if A == "" and B== "" but it states a invalid and operation
i cant include a dataex because the characters in one of the variables are too long.
Thanks in advance!
Related Posts with dropping observations if 2 strings are empty
Multilateral Resistance Term for distanceDear Statalist, I am trying to calculate a variable called "Mdistance" that was introduced in Baier…
Conflicting results with egen, max()Dear all, I'm trying to answer a question here: https://stackoverflow.com/questions/...rvations-sta…
help request with assigning values to paired casesI am struggling with how to code values to paired cases. I need to assign the same pre-post periods …
Multivariate probit with sample selectionDears, I am developing a multivariate probit model in which one of the variables "access to qualifie…
label of x-axisDear All, I was asked this question (https://bbs.pinggu.org/thread-10348633-1-1.html). The data set …
Subscribe to:
Post Comments (Atom)
0 Response to dropping observations if 2 strings are empty
Post a Comment