Re: [R] Take variables in data.frame and create list of matrices

2011-11-03 Thread AC Del Re
; 6 2 3 0.5 -0.7543462 -1.0371494 > 7 2 4 0.5 -1.9810018 -0.6742232 > > > > Date: Thu, 3 Nov 2011 08:54:52 -0700 > > From: de...@wisc.edu > > To: r-help@r-project.org > > Subject: [R] Take variables in data.frame and create list of matrices > > > > Hi, &

Re: [R] Take variables in data.frame and create list of matrices

2011-11-03 Thread jose Bartolomei
s 5 2 1 0.5 0.2771839 1.0688474 6 2 3 0.5 -0.7543462 -1.0371494 7 2 4 0.5 -1.9810018 -0.6742232 > Date: Thu, 3 Nov 2011 08:54:52 -0700 > From: de...@wisc.edu > To: r-help@r-project.org > Subject: [R] Take variables in data.frame and create list of matrices > > Hi, > >

Re: [R] Take variables in data.frame and create list of matrices

2011-11-03 Thread jose Bartolomei
839 1.0688474 6 2 3 0.5 -0.7543462 -1.0371494 7 2 4 0.5 -1.9810018 -0.6742232 > Date: Thu, 3 Nov 2011 08:54:52 -0700 > From: de...@wisc.edu > To: r-help@r-project.org > Subject: [R] Take variables in data.frame and create list of matrices > > Hi, > > I have this sample d

[R] Take variables in data.frame and create list of matrices

2011-11-03 Thread AC Del Re
Hi, I have this sample data below and would like to create a list of matricies. setseed(1254) id <- c(1,1,1,1 ,2,2,2) o <- as.factor(c(1:4, 1, 3, 4)) r <- rep(.5, 7) v <- rnorm(7) s <- rnorm(7) dat <-data.frame(id, o, r, v, s) dat #> dat # id o r v s # 1 1 0.5 0.7024631 2