Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72769

Problem: Identifying Cells that Actually Contain Data in My Stata File

$
0
0
Hi there,

I am encountering a problem with some data I am working on in Stata. Here's the story. I have a column (a string variable) that has many, many cells that contain absolutely no characters. I would like to be able to identify the cells that actually do contain at least some data and generate a new variable that would take the value of 1 if this is the case. Does anyone know how to do this in Stata? In Excel I would use the following formula to solve this problem: =IF(A1<>””,1,0 Unfortunately, I'm not sure how to address this issue in Stata. Anybody have some advice for me?

Thanks in advance for your help!

Matt

Viewing all articles
Browse latest Browse all 72769

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>