[R] Joining Characters in R {issue with paste}

Erik Iverson eiverson at NMDP.ORG
Wed Sep 9 23:12:53 CEST 2009


And did you read the help file, ?paste , paying attention to the arguments and their descriptions, specifically the "sep" argument?  Presumably, you want, 

paste(a, b, sep = "")

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Abhishek Pratap
Sent: Wednesday, September 09, 2009 4:09 PM
To: r-help at r-project.org
Subject: [R] Joining Characters in R {issue with paste}

Hi Guys
I am want to join to strings in R. I am using paste but not getting
desirable result.

For the sake of clarity, a quick example:

> a="Bio"
> b="iology"
> paste(a,b)
[1] "Bio iology"


*There is a SPACE in the word biology which is what I dont want *


Thanks,
-Abhi

	[[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list