Skip to content

creating character vector

1 message · Eik Vettorazzi

#
Hi Jim,
this may be barking up the wrong tree, but

create  <-function(...) paste(substitute(list(...)))[-1]
createl  <-function(...) {
 tmp<-list(...)
 names(tmp)<-create(...)
 tmp
}

#eg
a<-1:4
b<-letters[2:6]
createl(a,b)

works. But I can't imagine that a named list is the one and only useful
data type for your problem.

Am 14.03.2011 19:36, schrieb Maas James Dr (MED):