search for: dat12

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

Did you mean: dat1
2010 Mar 30
2
Need help to split a given matrix is a "sequential" way
...[5,] 200 50 180 [,1] [,2] [,3] [1,] 100 180 80 [2,] 100 150 60 [3,] 100 50 60 [4,] 100 100 100 [5,] 100 50 120 Now each of dat1 and dat2 needs to be splited according to the it's 2nd column i.e. > dat11 <- dat1[which(dat1[,2] == unique(dat1[,2])[1]),] > dat12 <- dat1[which(dat1[,2] == unique(dat1[,2])[2]),] > dat13 <- dat1[which(dat1[,2] == unique(dat1[,2])[3]),]; dat11; dat12; > dat13 [1] 200 100 80 [,1] [,2] [,3] [1,] 200 150 180 [2,] 200 150 100 [,1] [,2] [,3] [1,] 200 50 140 [2,] 200 50 180 similarly for dat2......
2011 Dec 22
5
Como calcular la media de una gran cantidad de flow.frame en un ciclo "for" ...
...unda columna tiene el mismo valor para las 10.000 filas en cada archivo asi es que sabemos el promedio de antemano, pero quiero incluirlo en el calculo de todos modos. Para calcular las medias he creado el siguiente nano-algoritmo que incluye un ciclo "for" : lista <- ls(pattern="dat12") # para usar solo los archivos que son del mes 12 que son alrededor de 100 medias <- c(1:length(lista)) for (i in length(lista)){ medias[i] <- mean(exprs(lista[i][,5])) } pero obtengo el siguiente error: Error in exprs(lista[i][, 5]) : error in evaluating the argument ''o...
2011 Nov 27
1
Simplifying my code
...at1=complete(dat.mice,1) dat2=complete(dat.mice,2) dat3=complete(dat.mice,3) dat4=complete(dat.mice,4) dat5=complete(dat.mice,5) dat6=complete(dat.mice,6) dat7=complete(dat.mice,7) dat8=complete(dat.mice,8) dat9=complete(dat.mice,9) dat10=complete(dat.mice,10) dat11=complete(dat.mice,11) dat12=complete(dat.mice,12) dat13=complete(dat.mice,13) dat14=complete(dat.mice,14) dat15=complete(dat.mice,15) dat16=complete(dat.mice,16) dat17=complete(dat.mice,17) dat18=complete(dat.mice,18) dat19=complete(dat.mice,19) dat20=complete(dat.mice,20) I would like to simplify this into a for lo...
2010 Oct 15
7
Problem with merging two zoo objects
Dear all, I have following 2 zoo objects. However when I try to merge those 2 objects into one, nothing is coming as intended. Please see below the objects as well as the merged object: > dat11 V2 V3 V4 V5 2010-10-15 13:43:54 73.8 73.8 73.8 73.8 2010-10-15 13:44:15 73.8 73.8 73.8 73.8 2010-10-15 13:45:51 73.8 73.8 73.8 73.8 2010-10-15 13:46:21 73.8 73.8 73.8 73.8