Hello, I want all the observations of the variable "Website" to start with "www.". As shown below, most of the websites are written as "www.blahblahblah.com" but "www." is omitted in some of the observations. How do I write code so that all the obs of the variable starts with www.?
Thank you in advance!
Related Posts with replace variable values if it does not satisfy a certain condition
Find matched firmsHello everyone, Hope everything is going well. I have a question about how to identify the matched…
RecodingHello, I have the variable gender which was originally coded as 1 = male and 2 = female. I went in …
how to Import many excel files with multiple sheets and appending each sheet into one dta file for each file with the same excel file nameHello everyone, I just joined Statalist. So this is my first post. I would like to give you a brie…
Backward Compatibility .mlib-s Complied in v17Hi All, Yesterday a user made an issue on the -domin- (SSC) package's GitHub page noting that they …
Is there any way to stop pyStata while running?We know that both python and Stata have the stop-process capability, but it seems impossible to do t…
Subscribe to:
Post Comments (Atom)
0 Response to replace variable values if it does not satisfy a certain condition
Post a Comment