[R] Help with concatenation and arrays
VBMorozov@lbl.gov
VBMorozov at lbl.gov
Wed Jun 26 16:49:06 CEST 2002
Dear R-guRus:
I have 2 questions
1) I have 2 variables, e.g. x<-5; y<-"Char"
How do I create a new variable which would have both these values in a
string (e.g. "5Char", or "5 Char", etc ) ??
2) if i have an array x[1:100], and I do x[x==345.123], how do I get
position j in the array of those x[j] which are equal to 345.123 ?
Thank you very much,
Vlad.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list