Re: [Rd] formulas and frames

From: Charles Geyer <charlie_at_stat.umn.edu>
Date: Sat 02 Apr 2005 - 20:35:20 GMT

On Fri, Apr 01, 2005 at 05:04:23PM +0200, Dimitris Rizopoulos wrote:
> if I understand well you want something like this:
>
> y <- rnorm(100)
> p <- rnorm(100)
> x1 <- rnorm(100)
> x2 <- rnorm(100)
> x3 <- rnorm(100)
> nams <- c("y", "p", paste("x", 1:3, sep=""))
> ##############
> dat <- as.data.frame(lapply(nams, get))
> names(dat) <- nams
> dat
>
> I hope it helps.

Yes, that's it. Thanks.
(So ignore previous message).

-- 
Charles Geyer
Professor, School of Statistics
University of Minnesota
charlie@stat.umn.edu

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun Apr 03 06:38:26 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:02 GMT