From charlie at stat.umn.edu  Sat Apr  2 22:35:20 2005
From: charlie at stat.umn.edu (Charles Geyer)
Date: Sat Apr  2 22:35:27 2005
Subject: [Rd] formulas and frames
In-Reply-To: <006c01c536cc$16bf9610$0540210a@www.domain>
References: <200503051102.j25B2jec015493@hypatia.math.ethz.ch>
	<20050401073151.GA13433@stat.umn.edu>
	<006c01c536cc$16bf9610$0540210a@www.domain>
Message-ID: <20050402203520.GD8581@stat.umn.edu>

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


[Rd] formulas and frames
Charles Geyer