similar to: Swap rows and columns in a matrix

Displaying 20 results from an estimated 100 matches similar to: "Swap rows and columns in a matrix"

2012 Nov 13
2
multiply each row in a matrix with the help of the for loop
Dear R users, I have this program aa<-array(rep(0,27),dim=c(3,3,3)) a<-matrix(rep(1,9),ncol=3) n<-0 for (i in 1:3) {            a[i,]<-a[i,]*(-1)       n<-n+1       aa[,,n]<-a[i,] } but i real want to multiply each row  with -1 according to for loop and after that to put it in the array.  I will give an example for what excaclty want -1 -1 -1  1  1  1  1  1  1 -1 -1 -1 -1
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]]
2012 Nov 05
3
Error message
Dear R users, I have this problem with memory i guess  AA<-array(rep(0,96096000),dim=c(16,5,3003,400)) Error: cannot allocate vector of size 733.2 Mb can anyone help me,  Thanks in advance... [[alternative HTML version deleted]]
2012 Nov 11
2
changing the signs in rows or columns in matrices and check them if they are identical
Dear R users, i have this problem with matrices i want to check between two matrices if they are isomorphic i will give an example for what excactly i want   1 -1  1                                 -1  1   1 -1   1  -1                                1  -1  -1   1  1   -1                                1   1  -1 this two matrices are isomorphic beacause if i change the first 2 columns the matrices
2012 Nov 18
1
i want to put the results of the list in a for loop
Dear R users, i want to put the results of a list to a for loop. i will give an example m1<-matrix(rep(1,15),ncol=5)   ind.sgn <- lapply(1:ncol(m1), combn, x = ncol(m1))  ind.sgn [[1]]      [,1] [,2] [,3] [,4] [,5] [1,]    1    2    3    4    5 [[2]]      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,]    1    1    1    1    2    2    2    3    3     4 [2,]    2    3    4    5   
2012 Oct 30
2
Put submatrices in an array
Dear R users, I have a Hadamard matrix 16x15 and i want to put 16x5 submatrices in an array put i have an error. > A1<-matrix(c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 1,0,1,0,1,0,1,0,1,0,1,0,1,0,1, + 0,1,1,0,0,1,1,0,0,1,1,0,0,1,1, + 1,1,0,0,1,1,0,0,1,1,0,0,1,1,0, + 0,0,0,1,1,1,1,0,0,0,0,1,1,1,1, + 1,0,1,1,0,1,0,0,1,0,1,1,0,1,0, + 0,1,1,1,1,0,0,0,0,1,1,1,1,0,0, + 1,1,0,1,0,0,1,0,1,1,0,1,0,0,1, +
2012 Nov 17
2
problem with "any" function
Dear R users, I have the "any" function of R  any(ind.c, ind.r, ind.sgn) all are logical factors  it works fine when any of three is true but when they are combined it doesnt work. i tried this any(ind.c, ind.r, ind.sgn,((ind.c==TRUE) & (ind.r==TRUE)), ((ind.c==TRUE) & (ind.sgn==TRUE)),((ind.r==TRUE) & (ind.sgn==TRUE)),  ((ind.c==TRUE) & (ind.r==TRUE) &
2012 Nov 18
1
identical matrices
Dear R users, I want to check matrices when i change the order of the rows or/and the order of the columns or/and the combination of them i will give an example what i want  1  -1  1  1      1  1   1  1 -1  -1 -1 -1    -1 -1  -1  -1   1  1    1  1     1 -1    1   1 these 2 matrices are identical because i change the first row and make it third   1  -1  1  1      -1  1   1  1 -1  -1 -1
2008 Dec 08
4
Removing string's accents
Hi, I''m pretty sure to have seen a new method ''remove_accents'' in Rails 2.2 but I can''t find it again. Is it me or does this method exists for good ? Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2004 Feb 17
1
extracting standard error from lme output
Dear R experts, I want to extract standard error from the output of lme, but I found fix.effects() does not include SE of the coefficients. Many thanks in advance. Best regards, Yu-Kang _________________________________________________________________ ²{¦b´N¤W MSN ·|­û¥Ø¿ý¡G¦b½u¤Wµ²¥æ·sªB¤Í¡A§ä¨ì¿³½ì¬Û§ëªº¹Ù¦ñ
2004 Nov 09
2
Compile samba 3.0.8 fail
Hello all When I install Samba 3.0.8 I get error messages, anyone know how to fix it? Thanks Compiling dynconfig.c In file included from include/includes.h:792, from dynconfig.c:21: tdb/tdb.h:114: argument format specified for non-function `log_fn' make: *** [dynconfig.o] Error 1 david
2006 Nov 14
1
??: Re: Need help in waveslim package: imodwt and universal.thresh.modwt
Airon, I used R2.4.0 on a Windows XP (SP2) (not Chinese :-)) and it still works: > data = read.csv("u:/airon.csv") > xdata = data$Adj..Close > modwt.la8 = modwt(xdata, "la8", n.level=6) > summary(modwt.la8) Length Class Mode d1 1467 -none- numeric d2 1467 -none- numeric d3 1467 -none- numeric d4 1467 -none- numeric d5 1467 -none- numeric d6 1467
2006 Nov 15
2
??: Re:??: Re: Need help in waveslim package: imodwt and universal.thresh.modwt
Airon, I don't think you have to find an English computer 'cause the following must work in your Chinese one :-) Let me explain. First of all, change your lines to xdata <- ckhdat$Adj..Close[1:1447] #names(ckhdwt.la8) <- c("w1", "w2", "w3", "w4", "w5","w6", "v6") note the # sign, i.e., DO NOT change the names
2002 Aug 17
1
ͨÓÃÍøÖ·-----Ö±½ÓÊäÈëÆóÒµ¡¢²úÆ·¡¢ÍøÕ¾µÄÃû³Æ£¬¼´¿ÉÖ±´ïÄ¿±êÍøÕ¾
Èç¹û±¾Óʼþ¸øÄã´øÀ´Á˲»±ã£¬ÎÒÃÇÉî¸Ð±§Ç¸£¬ÇëÁ¢¼´°ÑËüɾ³ý£¬ ²¢À´ÐÅ˵Ã÷£¬ÎÒÃǽ«²»»áÔٴδòÈÅ¡£ ͨÓÃÍøÖ·-----Ö±½ÓÊäÈëÆóÒµ¡¢²úÆ·¡¢ÍøÕ¾µÄÃû³Æ£¬¼´¿ÉÖ±´ïÄ¿±êÍøÕ¾.ÎÞÐè¼ÇÒ临ÔÓ µÄÓòÃû¡¢ÍøÖ·£¬ÎÞÐèhttp://¡¢www ¡¢.com¡¢.netµÈǰºó׺ ÊǼÌIP¡¢ÓòÃûÖ®ºó£¬×îÏÈ ½ø¡¢×î¿ì½Ý¡¢×î·½±ãµÄµÚÈý´ú»¥ÁªÍø·ÃÎʱê×¼ ¡£ÔÊÐí¸öÈË×¢²á£¬¿ª·Å ͨÓôʻã×¢²á²¢¿É×ÔÓÉתÈã¬ÉÌ»úÎÞÏÞ£¡¡°Í¨ÓÃÍøÖ·¡±ÔÚÏß×¢²á£¬Ãâ·ÑÊÔÓÃÊ®Ì죬24
2004 Sep 10
2
problem with file.wav > 700MB
On Mittwoch 09 Mai 2001 02:53, you wrote: > > > first I should say that it MIGHT not be because the file is > > > large. the wave reader in flac is pretty rudimentary and if there > > > is any sub chunk between the wave header and data sub chunk flac > > > will give you that error. could you inspect the wav file to see > > > if that's the case?
2007 Aug 08
6
The CentOS-Plus kernel
I see the new kernel available in the plus repository... is there some way to view what the differences are between that and the mainline kernel?
2005 Feb 11
6
i want to load chan_h323.so
2006 Aug 10
5
Variance Components in R
Hi, I'm trying to fit a model using variance components in R, but if very new on it, so I'm asking for your help. I have imported the SPSS database onto R, but I don't know how to convert the commands... the SPSS commands I'm trying to convert are: VARCOMP RATING BY CHAIN SECTOR RESP ASPECT ITEM /RANDOM = CHAIN SECTOR RESP ASPECT ITEM /METHOD = MINQUE (1) /DESIGN
2012 Nov 11
0
Changing the signs in rows or columns in matrices and check the matrices if they are identical
i have this problem with matrices i want to check between two matrices if they are isomorphic i will give an example for what excactly i want   1 -1  1                                 -1  1   1 -1   1  -1                                1  -1  -1   1  1   -1                                1   1  -1 this two matrices are isomorphic beacause if i change the first 2 columns the matrices are identical
2012 Oct 30
0
Isomorphic matrices
Dear R users,  I have 2 matrices dim(16x5) below and i want to write an algorithm that check the 2 matrices if they are isomorphic ones (Isomorphic matrices: if I change the rows or/and columns or/and zeros into 1 and 1 into zeros in a row(s) or column(s) are the 2 matrices identical). 0    0    0    0    0  1    0    1    0    1  0    1    1    0    0  1    1    0    0    1  0    0    0    1    1