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
Interaction Term and Measuring the Impact of Pre- and Post-ReformDear Members, I have panel data, spanning between 2005 to 2015. I just want to measure the impact o…
why always (invalid nameHere is my code as shown below, when I run it, it always report error "( invalid name". Somebody ple…
Generating dummy variables based on variables with multiple categoriesHi, I have a (panel) dataset that contains the following variables for each observation: person_id …
Merge One Variable to Multiple Instances in Master DatasetHello, I have a dataset in which multiple organizations can serve the same county. I have a crosswa…
Weighted median and range with svy dataHi all, I'm hoping this is an easy response but I can't seem to find an answer to it. I'm working w…
Subscribe to:
Post Comments (Atom)
0 Response to dropping observations if 2 strings are empty
Post a Comment