Displaying 3 results from an estimated 3 matches for "drug15".
Did you mean:
drug1
2011 Feb 08
1
Just another pattern matching / indexing question
...1" "DRUG2" "DRUG3" "DRUG4" "DRUG5"
[7] "DRUG6" "DRUG7" "DRUG8" "DRUG9" "DRUG10" "DRUG11"
[13] "DRUG12" "DRUG13" "DRUG14" "DRUG15" "DRUG16"
> truvec<-drugindex$book.MRN[as.vector(unlist(apply(drugindex[,2:17], 2,
> grep, pattern="Lamotrigine")))]
> truvec
truvec
[1] 0024633 0008291 0008469 0030599 0027667
37 Levels: 0008291 0008469 0010188 0014217 0014439 0015822 ... 003426...
2003 Dec 08
1
Recoding problem
Hello
I have the following variables, all of which are logicals
fmar15 fcoc15 fher15 fcrk15 fidu15
what I would like is a variable drug15 which equals
idu if fidu15 is T; crk if fidu15 is F but fcrk is T, her if fher15 is
T but fcrk15 and fidu15 are F and so on
What's the best way to do this?
Thanks in advance
Peter L. Flom, PhD
Assistant Director, Statistics and Data Analysis Core
Center for Drug Use and HIV Research
Natio...
2011 Sep 28
1
number of items to replace is not a multiple of replacement length
...t; "DRUG3" "DRUG4" "DRUG5"
[6] "DRUG6" "DRUG7" "DRUG8" "DRUG9" "DRUG10"
[11] "DRUG11" "DRUG12" "DRUG13" "DRUG14" "DRUG15"
[16] "DRUG16" "DrugDose1" "DrugDose2" "DrugDose3" "DrugDose4"
[21] "DrugDose5" "DrugDose6" "DrugDose7" "DrugDose8" "DrugDose9"
[26] "DrugDose10" "DrugDose11"...