[R] Help with paste()

2007-03-03 Thread Michael Kubovy
Dear r-helpers, Could you please tell me what's missing: rbind(paste('txt.est',1:24, sep = '')) txt.est1, ... txt.est24 are vectors that I wish to rbind. _ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400

Re: [R] Help with paste()

2007-03-03 Thread Christos Hatzis
Woburn, MA 01801 Tel: 781-938-3830 www.nuverabio.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Kubovy Sent: Saturday, March 03, 2007 2:30 PM To: r-help@stat.math.ethz.ch list Subject: [R] Help with paste() Dear r-helpers

Re: [R] Help with paste()

2007-03-03 Thread Charilaos Skiadas
On Mar 3, 2007, at 2:29 PM, Michael Kubovy wrote: Dear r-helpers, Could you please tell me what's missing: rbind(paste('txt.est',1:24, sep = '')) txt.est1, ... txt.est24 are vectors that I wish to rbind. the paste call just returns a vector of the strings txt.est1 and so on. Then you

Re: [R] Help with paste()

2007-03-03 Thread Marc Schwartz
On Sat, 2007-03-03 at 14:29 -0500, Michael Kubovy wrote: Dear r-helpers, Could you please tell me what's missing: rbind(paste('txt.est',1:24, sep = '')) txt.est1, ... txt.est24 are vectors that I wish to rbind. Micheal, Try this, presuming that each vector is the same length: # Create

[R] help with paste

2004-07-12 Thread Andrew Criswell
Hello All: Suppose the following little data frame: x - data.frame(dog = c(3,4,6,2,8), cat = c(8,2,3,6,1)) x$cat [1] 8 2 3 6 1 How can I get the paste() function to do the same thing. The command below is obviously wrong paste(x, cat, sep = $) Thanks, ANDREW

RE: [R] help with paste

2004-07-12 Thread Liaw, Andy
Do you mean something like: paste(x$cat, collapse= ) [1] 8 2 3 6 1 ?? Andy From: Andrew Criswell Hello All: Suppose the following little data frame: x - data.frame(dog = c(3,4,6,2,8), cat = c(8,2,3,6,1)) x$cat [1] 8 2 3 6 1 How can I get the paste() function to do the

Re: [R] help with paste

2004-07-12 Thread Duncan Murdoch
On Mon, 12 Jul 2004 13:16:06 +0700, Andrew Criswell [EMAIL PROTECTED] wrote : Hello All: Suppose the following little data frame: x - data.frame(dog = c(3,4,6,2,8), cat = c(8,2,3,6,1)) x$cat [1] 8 2 3 6 1 How can I get the paste() function to do the same thing. The command below is

Re: [R] help with paste

2004-07-12 Thread Rolf Turner
Andrew Criswell wrote: Suppose the following little data frame: x - data.frame(dog = c(3,4,6,2,8), cat = c(8,2,3,6,1)) x$cat [1] 8 2 3 6 1 How can I get the paste() function to do the same thing. The command ^^

Re: [R] help with paste

2004-07-12 Thread Marc Schwartz
On Mon, 2004-07-12 at 01:16, Andrew Criswell wrote: Hello All: Suppose the following little data frame: x - data.frame(dog = c(3,4,6,2,8), cat = c(8,2,3,6,1)) x$cat [1] 8 2 3 6 1 How can I get the paste() function to do the same thing. The command below is obviously wrong

RE: [R] help with paste

2004-07-12 Thread Liaw, Andy
Now that I see Duncan's reply, I believe that's what Andrew wanted. I really should read messages more carefully... Andy From: Liaw, Andy Do you mean something like: paste(x$cat, collapse= ) [1] 8 2 3 6 1 ?? Andy From: Andrew Criswell Hello All: Suppose the

Re: [R] help with paste

2004-07-12 Thread Uwe Ligges
Marc Schwartz wrote: On Mon, 2004-07-12 at 01:16, Andrew Criswell wrote: Hello All: Suppose the following little data frame: x - data.frame(dog = c(3,4,6,2,8), cat = c(8,2,3,6,1)) x$cat [1] 8 2 3 6 1 How can I get the paste() function to do the same thing. The command below is obviously wrong