Displaying 20 results from an estimated 3000 matches similar to: "Working with large matrix"
2009 Sep 07
2
Averaging rows if a condition is true.
Dear All,
I have matrix (50000 X 60) of subjects and their responses to a set of questions. All responses are classified into categories (500). I would like to average all subject's responses for each category. I wrote a code using a for loop but is not working. Could please tell me what's wrong with the code? I guess, there is a elegant R way of doing the same thing.
Thanks in advance.
2008 Jul 15
2
Problem installing R on openSUSE 10.3
Dear All,
I am trying to install R 2.7 on my openSUSE 10.3. I have faithfully followed instruction at http://cran.r-project.org/bin/linux/suse/ReadMe.txt. I have downloaded all the RPMs but still R complains about:
libtcl8.4.so is needed by R-base-2.7.1-6.1.i586
I searched for this library and found a one, tcl-8.4.15-22.i586.rpm at openSUSE distribution site and installed. But R still complains
2008 Jul 10
2
false discovery rate !
Dear All,
It is not a typical R question (though I use R for this) but I thought someone will help me. For the list of P values, I have calculated FDR using p.adjust() in R (bioconductor). But my FDR values are same for all the P values. When do we get same FDR values? Does the smallest P values should less than 1/N? (where N is the number of P values)
Thanks in advance.
Kind regards,
Ezhil
2007 Apr 27
2
Scatter Plot in R - Help
Dear All,
I am using the following commands to do the scatter
plot of two vectors, say X and Y.
plot(X,Y, col="blue")
abline(a=1,b=1, col="red")
abline(a=-1,b=1, col="green")
I would like to split the scatter plot into 3 part
with 3 different colors: (i) points lies between 2
lines, (ii) points above line 1, and (iii) points
below line 2. I am struggling to do
2005 Oct 26
3
Storing graphics output in PNG format.
Dear All,
How can I store hist() or any plot output graphics in
PNG format? I tried with bitmap() but not getting the
result. Appreciate your help on fixing this.
Thanks in Advance.
Regrads,
Ezhil
2008 Nov 21
2
Extracting diagonal matrix
Dear All,
I have a correlation matrix of size 100 x 100 and would like to extract the diagonal matrix from it. I have used the for loop to store tha correlation values of the diagonal matrix. Is there a 'R way' of doing this?
Thanks in advance.
Kind regards,
Ezhil
2008 Nov 21
2
Calculating correlation for a big matrix
Dear All,
I have a matrix of size 10000 x 50. I would like to calculate all possible pair-wise correlation coefficient (5x10^7 combinations) using cor(). How can I efficiently calcualte and save the result in a matrix?
Thanks in advance.
Kind regards,
Ezhil
2006 Jun 27
1
Boxplot questions.
Dear all,
I am having a data for 2 different treatments with
different time points. So, I used the following code
to plot the boxplot and also to do anova.
T11 <- c(280, 336, 249, 277, 429)
T12 <- c(400, 397, 285, 407, 313)
T13 <- c(725, 373, 364, 706, 249)
T21 <- c(589, 257, 466, 248, 913)
T22 <- c(519, 424, 512, 298, 907)
T23 <- c(529, 479, 634, 354, 1015)
obs <- c(T11,
2007 Mar 28
5
Large matrix into a vector
Hi,
I have a matrix HR(9x27). I would like to make a
single vector with elements: t(HR[,1]) followed by
t(HR[,2]) and then t(HR[,3] ... etc. Is there any neat
way of converting this matrix into a vector rather
doing something like c(t(HR[,1]), t(HR[,2]), t(HR[,3])
..)?
Thanks in Advance.
Kind regards,
Ezhil
____________________________________________________________________________________
2012 Mar 08
4
Correlation between 2 matrices but with subset of variables
Dear All,
I have two matrices A (40 x 732) and B (40 x 1230) and would like to calculate correlation between them. I can use: cor(A,B, method="pearson") to calculate correlation between all possible pairs. But the issue is that there is one-many specific mappings between A and B and I just need to calculate correlations for those pairs (not all). Some variables in A (proteins, say p1)
2010 Jun 15
1
help biglm.big.matrix; problem with weights
Hello colleagues,
I have tried to use the package biglm. I want to specify a
multivariate regression with a weight.
I have imported a large dataset with the library(bigmemory). I load
the library (biglm) and specified a regression with a weight. But I
get everytime a error message like ?object not found? or ?`weights'
must be a formula? or "error in eval(expr, envir, enclos)". I
2006 May 29
2
newbie question: ROW average
Dimitris Rizopoulos wrote:
> look at ?rowMeans; you can also use "apply(mat, 1, mean)" but
> rowMeans() is better.
By my reading of the question, this is not what
Ezhil wants. He said:
``I have a 992 x 74 matrix. I would like to form a new matrix
by averaging each 4 rows from the original one.''
I.e. he wants (I think) the first row of the new matrix
to be the
2009 Aug 04
3
One critical question in R
Hi,
I have one critical question in using R.
I am currently working on some research which involves huge amounts
of data(it is about 15GB).
I am trying to use R in this research rather than using SAS or STATA.
(The company where I am working right now, is trying to switch SAS/STATA to
R)
As far as I know, the memory limit in R is 4GB;
However, I believe that there are ways to handle the large
2009 Dec 10
3
vector help
I have tow vectors one is the subset of another
x is a subset of X Both are vectors with n elements
X[X %in% x] would give me x again rite because it is a subset but i want all
those are not in x from X.
X[which(X != x)] should this do that
Thanks
Ramya
--
View this message in context: http://n4.nabble.com/vector-help-tp960277p960277.html
Sent from the R help mailing list archive at
2009 Jul 16
6
Best way to replace :SS with :00
Not sure if there is an R way to do this or a regular express way, but here is what I am trying to do.
I've got lots of data where the format is HH:MM:SS, but I need to format it like HH:MM:00, i.e. round the second down to zero.
What is the best way to do this?
Thanks again.
Jason
2010 Dec 17
1
[Fwd: adding more columns in big.matrix object of bigmemory package]
Hi,
With reference to the mail below, I have large datasets, coming from various
different sources, which I can read into filebacked big.matrix using library
bigmemory. I want to merge them all into one 'big.matrix' object. (Later, I
want to run regression using library 'biglm').
I am unsuccessfully trying to do this from quite some time now. Can you
please
2009 Jul 08
1
ksvm question -- help! line search failed...
I got the data working, but now I got another problem with KSVM:
line search fails -2.793708 -0.5831701 1.870406e-05 -5.728611e-06
-5.059796e-08 -3.761822e-08 -7.308871e-13Error in
prob.model(object)[[p]]$A :
$ operator is invalid for atomic vectors
On Tue, Jul 7, 2009 at 6:45 PM, Steve
Lianoglou<mailinglist.honeypot at gmail.com> wrote:
> Hi,
>
> On Jul 7, 2009, at 6:44 PM,
2009 Nov 28
2
R on Large Data Sets (again)
Dear R users,
I’ve search the R site for help on this topic but it is hard to find a
precise answer for my questions.
Which are the best options to overcome the RAM memory limitation problems
when using R on “large” data sets (such as 2 or 3 million records)?
- Is the free available version of R (as opposed to the one
provided by REvolution Computing) compatible with a windows 64-bit
2010 Feb 24
1
Sparse KMeans/KDE/Nearest Neighbors?
hi,
I have a dataset (the netflix dataset) which is basically ~18k columns and
well variable number of rows but let's assume 25 thousand for now. The
dataset is very sparse. I was wondering how to do kmeans/nearest neighbors
or kernel density estimation on it.
I tired using the spMatrix function in "Matrix" package. I think I'm able to
create the matrix but as soon as I pass
2009 Aug 05
4
A question regarding R scoping
I have a question related to scoping. Suppose we have 2 functions:
f1 = function(i){i = 1}
f2 = function(n){
i = length(n)
f1(i)
}
In other words, I would like i=1 regardless of n. Is this possible without having f1 in the body of f2? Thanks in advance!