Re: [R] Passing a list object to lapply

2009-08-25 Thread Uwe Ligges
Fowler, Mark wrote: Hello, I'm having difficulty passing an object name to a lapply function. Can somebody tell me the trick to make this work? lapply() works on objects rather than names of objects, hence you need get(paste(...)). Uwe Ligges #Works T13702 <- TRACKDATA[["13702.xls"]

[R] Passing a list object to lapply

2009-08-11 Thread Fowler, Mark
Hello, I'm having difficulty passing an object name to a lapply function. Can somebody tell me the trick to make this work? #Works T13702 <- TRACKDATA[["13702.xls"]][["data"]] min(unlist(lapply(list(T13702), function(x) mdy.date(x[1, 2], x[1, 1], x[1, 3] 16553 #Works d<-2 assign(paste("T",s