Displaying 1 result from an estimated 1 matches for "a_longer_old_thing".
2012 Aug 01
2
add vectors to multiple objects
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 (i in 1: lf) {
assign(i$add,as.numeric(dat[,3]))
#or i$add=as.numeric(dat[,3]