Displaying 20 results from an estimated 2000 matches similar to: "Diagonal Submatrices Extraction"
2007 Jul 26
2
multiple graphs
Does anyone have a simple explanation and example on how to add histograms or barcharts to an other graph like in the example at the R-graph gallery:
http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=109
looking at the code I'not undertand very well how to add graphs in arbitrary/clever position with an adequate scale.
If somebody have a simplier example with explanations it
2007 Aug 01
1
Two-way ANOVA
I've got this dataframe
X12 X14 X17 X19 vitigni years
1 1 4 78 54 rie 2005
2 1 4 7 4 rie 2005
3 1 4 75 5 rie 2005
4 2 5 66 5 croa 2005
5 1 4 4 46 croa 2005
6 2 5 7 6 croa 2005
7 3 2 56 5 rie 2006
8 3 6 4 7 rie 2006
9 3 2 36 7 rie 2006
10 1 5 3 7 croa 2006
11 1
2007 Jul 06
1
Fees to use R
Good morning to all,
I work for a bank in Italy, I want to know if i can install R and relative add on like Rbloomberg for free or my company has to pay some fee.
tanks to all.
Stefano Colucci
------------------------------------------------------
Scegli infostrada: ADSL gratis per tutta l?estate e telefoni senza canone Telecom
http://click.libero.it/infostrada
2007 Apr 25
1
for loops
Hello everybody
I'm very new at using R so probably this is a very stupid question.
I have a matrix of "p" columns and I have to calculate for each of them the "two sample t-statistic" and p-value and to save the results into two different vectors.
I have divided my matrix into two submatrices: submatrix A containing the first "n1" rows (p columns) and submatrix B
2012 Oct 22
4
Help with applying a function to all possible 2x2 submatrices
Hi all,
I'm working with a large data set (on the order of 300X300) and trying to
apply a function which compares the elements of all possible 2x2
submatrices. There are rc(r-1)(c-1) such submatrices, so obviously the naive
method of looping through the rows and columns is computationally unfeasible
for my data set:
for(i in 1:(nrow(data)-1)) {
for(j in (i+1):nrow(data)) {
for (m
2004 Sep 15
2
efficient submatrix extraction
Hi,
I have a matrix of say 1024x1024 and I want to look at it in chunks.
That is I'd like to divide into a series of submatrices of order 2x2.
| 1 2 3 4 5 6 7 8 ... |
| 1 2 3 4 5 6 7 8 ... |
| 1 2 3 4 5 6 7 8 ... |
| 1 2 3 4 5 6 7 8 ... |
...
So the first submatrix would be
| 1 2 |
| 1 2 |
the second one would be
| 3 4 |
| 3 4 |
and so on. That is I want the matrix to be evenly divided
2012 Aug 23
1
Why was my R process killed spontaneously?
I tried to use gpuCor function in the gputools package of R to calcuate the
pairwise correlations of a matrix of 40,000 columns.
Becuase there would be memory issues if I use the whole matrix at a time, I
splitted the matrix into submatrix of 10,000 columns and then calculate the
pairwise correlation of different submatrices. There are altogether 4
submatrices, so I need to calculate the pearson
2015 Oct 29
2
Extraer elementos diagonales de submatrices
El código que me olvide pegar
input
m <- structure(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 0, 0, 0, 0,
0, 0, 0, 5, 5, 5), .Dim = c(10L, 5L))
m
## output
output <- c(1:3, 1:5, 1:2)
output
nfilas <- nrow(m)
while(nfilas > 0) {
diagonal <- diag(m)
2015 Oct 28
3
Extraer elementos diagonales de submatrices
Estimado Javier,
Gracias por tu mensaje.
No, lo unico que requiero es la lista de números (i1, 2, 3, 1, 2, 3, 4, 5,
1, 2).
Saludos cordiales,
Jorge.-
2015-10-28 14:35 GMT-05:00 Javier Rubén Marcuzzi <
javier.ruben.marcuzzi en gmail.com>:
> Estimado Jorge I Velez
>
>
>
> No comprendo un punto, dices que deseas construir sub matrices y extraer
> elementos de sub
2015 Oct 28
2
Extraer elementos diagonales de submatrices
Buenos dias a todos,
Quisiera extraer algunas entradas de una matrix "m" teniendo en cuenta
algunas restricciones. El siguiente ejemplo ilustra la situacion:
## input
m <- structure(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 0, 0, 0, 0,
0, 0, 0, 5, 5, 5), .Dim = c(10L, 5L))
m
## output
output <-
1998 Apr 09
1
0-extent matrices?
Is there a good reason not to allow matrix extents to be zero? I have been
writing a function which fits glms under certain linear constraints. I
fit the model with a reduced set of variables and then transform back to
the original set. This involves operating on submatrices of the
covariance matrix and subsets of the coefficients. Sometimes these subsets
are empty. A zero-length subset of the
2011 Aug 02
1
Functions for Sum of determinants of ranges of matrix subsets
Dear R-help list,
Pls I have this problem. Suppose I have a matrix of size nxn say, generated as follows
z<-matrix(rnorm(n*n,0,1),nrow=n)
I want to write a function such that for i in 1:n, I will remove the rows and columns
corresponding to i (so, will be left with n-1*n-1 submatrix in each cases). Now I need
the sum of the determinant of each of this submatrices. As an example, if n=3, it
2007 Mar 02
3
Reformulated matrices dimensions limitation problem
First I wanted to thank both Marc Schwartz Greg Snow and for their reply.
Then I needed to add a level of complexity to the problem.
I would be able to create the biggest possible matrix.
In other way does it exist a method to ask smthing like the following :
max number of rows for a matrix if column=x?
Thank you
------------------------------------------------------
Passa a Infostrada.
2004 Jan 26
3
write.table file="file.txt" help
Hi all,
I have a R script that creates several input files for an analysis
program. It loops through the matrix read into R and picks out
submatrices and then creates a separate output file for each
submatrix. The loop works great, but I am having trouble getting all
the separate output files written.
The line I have is:
write.table(ch1d,
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,
+
2002 Feb 01
3
matrix with ncol=1
Hello list,
I try to optimize some R code and it turns out that the function as.matrix
takes a lot of time in my code. There is only one reason why I need
as.matrix: My code should work for matrices with ncol=p and p should be
allowed to be 1 or larger.
Now I have a matrix x with dim(x)=(n,p), and
I need to work with the submatrix y <-x[gv,], (gv a vector of
n logicals) and to calculate
2007 Mar 26
2
Failure acknowledgement time
Hi,
I've noticed that if I disconnect or reconnect a phone from the net, Asterisk take long time to realize that (even more then 10 minutes). Is there a way to reduce this time, working on the configuration files?
Thank you.
silvia
------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada
2011 Apr 27
2
sub-matrix block size
Dear Rxperts
Below is a small vector of values of zeros and non-zeros... was wondering if
there is an efficient way to get the block sizes of submatrices of a big
matrix similar to the one shown below? diagonal elements can be zero too.
Rows with only a diagonal element may be considered as a unit block size.
c(1,0,0,0,0,0,0,0,0,0,0,
1,1,0,0,0,0,0,0,0,0,0,
0,0,1,0,0,0,0,0,0,0,0,
2007 Mar 16
2
Duplicated non contiguous element in a list
Hello,
Given a vector I would like to rapidly identify duplicated non contiguous elements.
Given for example
c(1, 1, 2, 3, 2, 4, 5, 6, 4)
I would like to get:
FALSE FALSE TRUE FALSE TRUE TRUE FALSE FALSE TRUE
In fact I need to check this on the columns of a matrix!
I can do that of couse with loops but is there any function already available?
Thanks
2012 Mar 14
3
Creating 250 submatrices from a large single matrix with 2500 variables using loops
Dear all,
I have a large matrix with about 2500 variables, and 100 rows.
I would like to calculate the means of the every 10 variables starting from
1:2500 and saving the results as a vector or matrix.
How can I do that?
Alternatively, How can I create 250 subset matrices in the order of
variables 1:2500 in groups of 10 from the single matrix which had initially
2500 variables ?
I guess I have