Re: [R] Rbind-ing a list into one item

2007-12-26 Thread Bert Gunter
TED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, December 26, 2007 1:37 PM To: r-help@r-project.org; Kondamani, Arjun (GMI - NY Corporate Bonds) Subject: Re: [R] Rbind-ing a list into one item >From: "Kondamani, Arjun (GMI - NY Corporate Bonds)" <[EMA

Re: [R] Rbind-ing a list into one item

2007-12-26 Thread Andrew Robinson
Hi Arjun, try do.call() Cheers Andrew On Wed, Dec 26, 2007 at 04:23:51PM -0500, Kondamani, Arjun (GMI - NY Corporate Bonds) wrote: > Hi, > > I am doing the following: > > 1. I have a list of files.. Files1=list.files("some > directory",pattern="some pattern") > 2. I define a list as res=vec

Re: [R] Rbind-ing a list into one item

2007-12-26 Thread markleeds
>From: "Kondamani, Arjun (GMI - NY Corporate Bonds)" <[EMAIL PROTECTED]> >Date: 2007/12/26 Wed PM 03:23:51 CST >To: r-help@r-project.org >Subject: [R] Rbind-ing a list into one item try do.call(rbind,res) >Hi, > >I am doing the following: > >1. I hav

[R] Rbind-ing a list into one item

2007-12-26 Thread Kondamani, Arjun (GMI - NY Corporate Bonds)
Hi, I am doing the following: 1. I have a list of files.. Files1=list.files("some directory",pattern="some pattern") 2. I define a list as res=vector("list", length(files1)) 3. I read all the files into this list: res=lapply(files1, read.csv) I now want to rowbind all the items in the list into