Hello,
I would like to translate this R formula below in Stata.
My data :
translate <- contains : translate$ID translate$WORDS (list of words) translate$RESUME
home <- contains : home$ID home$adress home$RESUME (empty field)
I whant to complete home$RESUME from translate$RESUME looping with translate$ID and translate$WORDS
[I]for(i in 1:nrow(translate)){
home$RESUME[grepl(translate$WORDS[i], home$adress, ignore.case = TRUE) & home$ID == translate$ID[i]] <- translate$RESUME
}
Thank you for your help !
Marc
Related Posts with Translate R to STATA
Mediation moderation commandHello, I was wondering if there is mediation moderation command all in one. Please see the model th…
EventStudy Ouptut table / outreg2?Hello Guys, I am conducting an event study (dividend announcements) with 109 companies and an event …
superimposing a normal distribution over a histogram - how to rescale the functionDear all, I am trying to superimpose a normal distribution over a histogram, but the final output d…
ci prop and proportions with zero countsHi, I would like to estimate a confidence interval for a proportion when there are zero counts. I fi…
Stationarity in Macroeconomic Panel DataDear Statalist, I am working on my dissertation which includes an analysis of macroeconomic data su…
Subscribe to:
Post Comments (Atom)
0 Response to Translate R to STATA
Post a Comment