search for: lis2

Displaying 4 results from an estimated 4 matches for "lis2".

Did you mean: lis
2011 Apr 06
2
A zoo related question
Dear all, please consider my following workbook: library(zoo) lis1 <- vector('list', length = 2) lis2 <- vector('list', length = 2) lis1[[1]] <- zooreg(rnorm(20), start = as.Date("2010-01-01"), frequency = 1) lis1[[2]] <- zooreg(rnorm(20), start = as.yearmon("2010-01-01"), frequency = 12) lis2[[1]] <- matrix(1:40, 20) lis2[[2]] <- matrix(41:80, 20)...
2006 Sep 07
1
Running wilcox.test function on two lists
Dear all, I'm a newbie to R and I would really apperciate any help with the following: I have two lists, l1 and l2: l1: $"A*0101" [1] 0.076 0.109 0.155 0.077 0.09 0 0 0.073 [9] 0.33 0.0034 0.0053 $"A*0247" [1] 0 0 0.5 .004 0 0 0 $"A*0248" [1] 0 0 0.3 0 0.06 .... l2: $"A*1101" [1] 0.17 0.24 0.097 0.075 0.067 $"A*0247" numeric(0)
2011 Apr 19
1
Reducing dimension of a list object
...rent session I have few objects which are actually list of list of list..(say n step). If I reduce their dimension then I have call Reduce() function many times. Therefore my question is, is there any 1-step way to reduce the dimension at the lowest level? Take this example: lis1 <- list(4) lis2 <- list(1,8) lis3 <- list(lis1, lis2) # Now I want to reduce the dimension of lis3 to a column vector: > Reduce("c", Reduce("c", lis3)) [1] 4 1 8 I want to have some mechanism so that I need not to call reduce() function twice. Is there any way to do that?...
2005 Jan 06
2
Generating Data mvrnorm and loops
Dear List: I am generating N datasets using the following Sigma<-matrix(c(400,80,80,80,80,400,80,80,80,80,400,80,80,80,80,400),4,4 ) mu<-c(100,150,200,250) N=100 for(i in 1:N) { assign(paste("Data.", i, sep=''), as.data.frame(cbind(seq(1:1000),(mvrnorm(n=1000, mu, Sigma))))) } With these datasets, I need to work on some of the variables and then run each dataset