Re: [R] add vectors to multiple objects

2012-08-03 Thread David Winsemius
On Aug 3, 2012, at 2:11 PM, R. Michael Weylandt wrote: On Fri, Aug 3, 2012 at 2:53 PM, John linux-user > wrote: Maybe what I previously posted was not clear enough or something else. All vectors L1,L2.. and objects (e.g. a.list, b.list, c.list) already exit or easily to be created in a works

Re: [R] add vectors to multiple objects

2012-08-03 Thread R. Michael Weylandt
On Fri, Aug 3, 2012 at 2:53 PM, John linux-user wrote: > Maybe what I previously posted was not clear enough or something else. All > vectors L1,L2.. and objects (e.g. a.list, b.list, c.list) already exit or > easily to be created in a workspace. Do not worry about those. The key > question is

Re: [R] add vectors to multiple objects

2012-08-03 Thread John linux-user
meric(dat[,3])) >  #or i$add=as.numeric(dat[,3] >    names(i)[names(i)=="add"]=substr(x,1,5) > >    print (i[1:3,]) >  }} From: David Winsemius Cc: "r-help@r-project.org" Sent: Friday, August 3, 2012 2:58 PM Subject: Re: [R] add

Re: [R] add vectors to multiple objects

2012-08-03 Thread David Winsemius
ser Cc: "r-help@r-project.org" Sent: Wednesday, August 1, 2012 7:21 PM Subject: Re: [R] add vectors to multiple objects On Aug 1, 2012, at 8:11 AM, John linux-user wrote: > Hi everyone, > > I try to add many vectors (L1,L2,L3) to many list objects (a.list, b.list) in a

Re: [R] add vectors to multiple objects

2012-08-03 Thread John linux-user
ow to sign vectors L1,L2,..Ln to each object (a.list, b.list...) } Any suggestions/comments/ideas will be appreciated. John From: David Winsemius Cc: "r-help@r-project.org" Sent: Wednesday, August 1, 2012 7:21 PM Subject: Re: [R] add vectors

Re: [R] add vectors to multiple objects

2012-08-01 Thread David Winsemius
On Aug 1, 2012, at 8:11 AM, John linux-user wrote: Hi everyone, I try to add many vectors (L1,L2,L3) to many list objects (a.list, b.list) in a workspace. Somethings like below, but it is not working. Any suggestions will be appreciated. Best, John lf=ls(pattern=".lst") for (x

[R] add vectors to multiple objects

2012-08-01 Thread John linux-user
Hi everyone, I try to add many vectors (L1,L2,L3) to many list objects (a.list, b.list) in a workspace. Somethings like below, but it is not working. Any suggestions will be appreciated. Best, John lf=ls(pattern=".lst")  for (x in listfiles) {     dat=read.delim(x,header=F)     for