Hi --

I had a pretty quick R question since unfortunately I have not been able to
find an answer on Google.  It shouldn't take much more than a minute to
answer.

I'm trying to add up the major gleason grade and minor gleason grade for an
analysis of patients with prostate cancer.  One column has values under
"Major Gleason" and another column has values under "Minor Gleason."  For
example,
Major Gleason     Minor Gleason
4                         3
5                         2
2                         4
3                         3

I want my output to be:
"4+3"
"5+2"
"2+4"
"3+3"

The quasi-pseudocode in Java is basically:

major = column$majorGleason
minor = column$minorGleason
for item in len(Major Gleason) {
  string s = major(item) "+" minor(item);
}
return s;

But trying the same idea in R:

string <- major "+" minor

gives me an error: "unexpected string constant in..."

I would greatly appreciate any help.

Thanks,

Ben

	[[alternative HTML version deleted]]

