search for: alply

Displaying 11 results from an estimated 11 matches for "alply".

Did you mean: ally
2008 Sep 30
0
New package: plyr
...ists * progress bars to keep track of long running operations * built-in error recovery * the choice of passing chunks as rows or as variables plyr functions are named according to the type of object they input (first letter) and output (second letter): * llply = from a list to a list * alply = from an array (or vector, or matrix) to a list * ldply = from a list to a data.frame * d_ply = from a data.frame, ignore output * and so on for llply, laply, ldply, l_ply, alply, aaply, adply, a_ply, dlply, daply, dply, d_ply plyr also provides: * m*ply which works in a similar way to m...
2008 Sep 30
0
New package: plyr
...ists * progress bars to keep track of long running operations * built-in error recovery * the choice of passing chunks as rows or as variables plyr functions are named according to the type of object they input (first letter) and output (second letter): * llply = from a list to a list * alply = from an array (or vector, or matrix) to a list * ldply = from a list to a data.frame * d_ply = from a data.frame, ignore output * and so on for llply, laply, ldply, l_ply, alply, aaply, adply, a_ply, dlply, daply, dply, d_ply plyr also provides: * m*ply which works in a similar way to m...
2012 Nov 12
2
Selected matrices of an array and put into a list
Dear R users, I have an array that has matrices that i want BB[16,5,2:27] i want to put each of the 26 matrices into a List  thanks in advance [[alternative HTML version deleted]]
2009 Nov 05
1
how to collapse list into a matrix with names
Dear R-Helpers, I have the following code: data = read.csv("test.csv",header=T,na.strings="-",row.names=1) myData=as.matrix(data) ##myData is a 102x19 matrix myList = alply(myData, 2,function(x){matrix(x,ncol=6,byrow=T)}) ##myList is a list containing 19 matrices with the following names > names(myList) [1] "*ES" "*ET" "*ER" "*DS" "*DT" "*DR" [7] "*VS" &quot...
2010 Oct 03
1
plyr: a*ply with functions that return matrices-- possible bug in aaply?
...) > t2<-fun2way(HairEyeColor[,,2]) > > library(abind) > abind(t1, t2, along=3) , , 1 Brown Blue Hazel Black 32 11 10 Brown 53 50 25 Red 10 10 7 , , 2 Brown Blue Hazel Black 36 9 5 Brown 66 34 29 Red 16 7 7 alply() gives me what I want, but with the strata as list elements, rather than an array > library(plyr) > # strata define separate list elements > alply(HairEyeColor, 3, fun2way) $`1` Eye Hair Brown Blue Hazel Black 32 11 10 Brown 53 50 25 Red 10...
2012 Nov 27
3
loop command to matrix
Dear UseRs,Extremely sorry for a basic question. I have a matrix of 19 rows and 365 columns. what i want to do is the following...First i want to leave out column number 1 and want to calculate the row wise mean of the remaining columns, which will obviously give me 365 values in one column, and then subtracting these values from the column i left out i.e. col=1 then i want to leave out column 2
2011 Jan 17
1
how to cut a multidimensional array along a chosen dimension and store each piece into a list
Dear R-Helpers, I wonder whether there is a function which cuts a multiple dimensional array along a chosen dimension and then store each piece (still an array of one dimension less) into a list. For example, arr <- array(seq(1*2*3*4),dim=c(1,2,3,4)) # I made a point to set the length of the first dimension be 1to test whether I worry about drop=F option. brkArrIntoListAlong <-
2011 Sep 27
3
remove NaN from element in a vector in a list
Hello, What is the best way to turn a matrix into a list removing NaN's? I'm new to R... Start: > mt = matrix(c(1,4,NaN,5,3,6),2,3) > mt [,1] [,2] [,3] [1,] 1 NaN 3 [2,] 4 5 6 Desired result: > lst [[1]] [1] 1 3 [[2]] [1] 4 5 6 Thanks! Ben [[alternative HTML version deleted]]
2012 Jan 12
1
parallel computation in plyr 1.7
Dear all, I have a question regarding the possibility of parallel computation in plyr version 1.7. The help files of the following functions mention the argument '.parallel': ddply, aaply, llply, daply, adply, dlply, alply, ldply, laply However, the help files of the following functions do not mention this argument: ?d_ply, ?aply, ?lply Is it because parallel computation is not supported for these latter functions? Or is it just because the documentation was not updated for these functions after adding the parallel...
2011 Aug 02
2
Help with aggregate syntax for a multi-column function please.
Dear R-experts: I am using a function called AUC whose arguments are data, time, id, and dv. data is the name of the dataframe, time is the independent variable column name, id is the subject id and dv is the dependent variable. The function computes area under the curve by trapezoidal rule, for each subject id. I would like to embed this in aggregate to further subset by each
2013 Jun 05
2
combining two different matrizes
Hello together, this is ma first post, so please aplogize me if post this in the wrong section. I have problem concerning ma two matrizes. After a regressione and so on, I got two matrizes Matrixres contains the results of ma calculation. Matrixr contains my detiene, which where Aldo used for the regression. Please ser the following code: #Datei einlesen residual =