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
Complicated coarsed exact matchingHi STATLIST, I am stocked into a matching problem. In particular, I would like to use coarsened exa…
survival analysis results - increase decimal placesHi all I was wondering if there is a way to increase the number of decimal places reported in survi…
Generalized ordered logit model and clarification about thresholdsHi, I found a paper that estimates a generalized ordered logit model. The dependent variable is wea…
How to interpret quadratic interaction in linear regression?In my linear regression, I am trying to see if there's an interaction between a categorical variable…
k-mean clustering using existing similarity matrixI have a dataset of workers, and I want to divide them into clusters based on some observables, one …
Subscribe to:
Post Comments (Atom)
0 Response to replace variable values if it does not satisfy a certain condition
Post a Comment