[R] string manipulation in R?
maneesh at www.chip.org
Thu Jul 19 00:06:39 CEST 2001
Hi all, back again,
How do I concatenate two string to produce a third?
Does the underlying representation of "character" allow this?
One thing I want to do with my database is to compare each record
pairwise, without loading the whole database in memory....so I what I
would like to do first query to get a list of strings which are the of the
database primary key column, and then generate the cross product of that
list with itself (which I can use "outer" for right?) then I need to
generate queries based on those pairs of strings. Only problem is that I
have the strings but how can I generate the query string I need?
in python or perl I'd write something like:
sql.select(column="*", from="gasch", where="NAME IS LIKE " + nameX " OR
NAME IS LIKE " + nameY)
(P.S. I am not sure but I don't think that the search option is working on
the mailing list archives, just in case no one has reported it)
Again I am sure there is a simple answer for this (I would've guessed
they'd be functions like "character.cat" or something..then again I hope I
am not assuming too much of the author's of R by asking them for all sorts
of nifty string stuff)
(I am subscribed now so there is no need to email)
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