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
Generated regressor in interaction termHi everyone Short form of question Can you use standard corrections for generated regressors when t…
Error using esrefline in meta forestplot in Stata 16SEHi I get an error "option esrefline not allowed" "r(198)" using meta forestplot. I have Stata v16SE.…
Duncan Segregation Index with Aggregate DataI'd like to calculate the duncan index of segregation, for occupational gender segregation. In addit…
Manipulating with string variablesHi all, I am using STATA 15.1 and I have a new problem and it is a challenge, at least for me if I …
Dummy variable value dependent on any of the 36 values in a string variableI am a beginner in Stata (ver 16) and need help regarding dummy variable. There is a dummy variable…
Subscribe to:
Post Comments (Atom)
0 Response to Translate R to STATA
Post a Comment