Displaying 20 results from an estimated 400 matches similar to: "subset in a BIG matrix"
2012 Sep 19
4
correlating matrices
Hi,
thank you for taking the time and reading my question. My question is
twofold:
1. I have several matrices with variables and one matrix with water levels.
I want to predict the water level with the data in the other matrices.
Basically,
* mod<-lm(matrix1 ~ matrix2+matrix3)*
( What looks like a minus is meant to be the wiggly minus.)
Of course I could dissemble the matrices and paste
2010 Oct 23
1
bind matrices by row
Hi R-users
I have a series of matrices and I would like to bind them together by
column using a loop (i.e. not writing cbind(matrix1,
matrix2,matrix3....)). The reason is because in my real data set I have
a very large number of matrices.
Example:
matrix1 <- matrix (1:12,4,3)
matrix2 <- matrix (13:24,4,3)
matrix3 <- matrix (25:36,4,3)
matrix4 <- matrix (37:48,4,3)
2013 Mar 01
2
issue creating a subset
I'm performing item response theory with eRm packages
I am excluding the persons that doesn't fit in the infit/outfit persons.
for that I created a condition. then I have to create a new subset or
matrix but with the condition.
So:
ORIGINAL
matrix<-cbind(item1, item2, item3, item4)
IF I PERFORM A head(matrix)
item1 item2 item3 item4
3 2 3 1
3 1
2007 Nov 21
1
How to select rows with identical index from two matrix?
Dear list,
I have two martix like these, each rows with name in the matrix.
I try to select rows with identical name from two matrix and calculate their correlation.
Matrix1:
2-Sep 9 5.5 1 7.18 10.0 8 139.45
2-Sep 7 4.9 15 8.22 61.68 9 123.62
4-Sep
5-Sep
AAMP
A2M
A2M
.
.
.
Matrix2:
2-Sep 4 7 1 6.8 12 8 19.4
2010 Feb 16
1
difftimes; histogram; memory problems
Hi All:
Let's say I have two dataframes (Condition1 and Condition2); each
being on the order of 12,000 and 16,000 rows; 1 column. The entries
contain dates.
I'd like to calculate, for each possible pair of dates (that is:
Condition1[1:10,000] and Condition2[1:10,000], the number of days
difference between the dates in the pair. The result should be a
matrix 12,000 by 16,000. Really,
2010 Dec 03
2
subset of a dataframe
HI,
I have a dataframe like this:
name type
A t1
B t2
C t1
D t1
E t3
F t2
how can I have a "sub dataframe" based with the column "type" like this:
(for type = t1)
name type
A t1
C t1
D t1
(for type = t2)
name type
B t2
F t2
Thanks
--
View this message
2004 Oct 15
6
length with missing values
R-help
I have a martix with missing values( in which I want the sample size by
column)
When I :
apply(matrix,2,length)
I get the length of the vector regardless of missing values.
I can't pass an argument to length in apply.
Alternatively I could
ifelse ( is.na ( matrix [, "columns in matrix " ] ) , 0 , 1)
Is there any easier way?
Thank you
2008 Dec 12
3
The end of Matlab
Greetings!
I come to R by way of Matlab. One feature in Matlab I miss is its
"end" keyword. When you put "end" inside an indexing expression, it
is interpreted as the length of the variable along the dimension being
indexed. For example, if the same feature were implemented in R:
my.vector[5:end]
would be equivalent to:
my.vector[5:length(my.vector)]
or:
2007 Nov 19
6
Reg : using two different matrix : how to do t.test
I have two matrix with same dimensions. I want to do t.test using each column from 2 different matrix.
Row n Column names in both matrix are same.
e.g.
Matrix1
id VC1 VC2 VC3
R 1 2 3
R1 4 5 6
R3 7 8 9
Matrix2
id VC1 VC2 VC3
R 10 11 12
R1 13 14 15
R3 16 17 18
want to do t.test using each column (with same name ) using Matrix1 and Matrix2
for eg
2009 Nov 22
18
[Bug 25223] New: LVDS detected, but disabled
http://bugs.freedesktop.org/show_bug.cgi?id=25223
Summary: LVDS detected, but disabled
Product: xorg
Version: 7.5
Platform: Other
OS/Version: All
Status: NEW
Severity: blocker
Priority: highest
Component: Driver/nouveau
AssignedTo: nouveau at lists.freedesktop.org
ReportedBy: martix.cz at
2012 Sep 04
2
Read data from .csv file as a matrix and compare the different between two matrix
Hi,
I have two table matrix, and I would like to compare the different between
two matrix.
For example:
Matrix 1:
A B C
A 0 1 0
B 0 0 1
C 0 0 0
Matrix 2:
A B C
A 0 1 0
B 0 0 0
C 0 0 0
Each column which have value 1, should also return value 1. As in this
case/example, the result should appear like this (as below). The result of
this differentiation should also be in matrix
2012 Oct 19
2
Axis Breaks with ggplot2
R-help -
I'm trying to create axis breaks similar to this :
http://www.r-bloggers.com/wp-content/uploads/2010/08/bar-chart-natural-axis-split1.png
.
Is there a way to do this in R? Here's my code thus far:
structure(list(condition = structure(c(2L, 1L, 3L), .Label = c("con",
"exp", "unedit"), class = "factor"), trial.avg = c(4.04583333333333,
2007 Aug 18
2
Problem with lsa package (data.frame) on Windows XP
Dear R team,
The following piece of code (to use the lsa package) works fine on my
mac os x, but when I run the same code on Windows XP, it doesn't work
any more.
### code:
library("lsa")
matrix1 = textmatrix("C:\\Documents and Settings\\tine stalmans.TINE.
000\\LSA\\cuentos\\", stemming=TRUE, language="spanish",
minWordLength=2, minDocFreq=1,
2010 Dec 01
5
Plot a matrix recursively
Hi,
I have the following matrix (named m):
key
sensor_date Laser_1 Laser_2
Laser_3
2010-09-30T15:00:12+0200 6 3
1
2010-10-31T15:05:07+0100 5 4
2
2011-09-30T15:00:12+0200 6
2012 Feb 13
0
[LLVMdev] Vectorization: Next Steps
I will test your suggestion, but I designed the test case to load the
memory directly into <4 x float> registers. So there is absolutely no
permutation and other swizzle or move operations. Maybe the heuristic
should not only count the depth but also the surrounding load/store
operations.
Are the load/store operations vectorized, too? (I designed the test case to
completely fit the SSE
2012 Aug 02
1
Filter a matrix with a matrix HELP!
Hi,
just during these vacation days, I'm trying to approach with multicore
package
and I have some troubles with foreach.
What I'm trying to do is to extract a data in coordinate (ii,jj) from a
matrix2,
only if the data in the same coordinate in matrix1 is ==1.
Make this with a nested "for" take a lot of time because I have thousand of
values.
ex.
Binary_hex = NULL
2008 Jul 11
3
List help
hi,
I need to remove the list that does not have any values.Do suggest me the
way to do it.
result<- list()
> head(result)
[[1]]
[,1] [,2] [,3]
[[2]]
[,1] [,2] [,3]
[[3]]
[,1] [,2] [,3]
[[4]]
[,1] [,2] [,3]
[[5]]
[,1] [,2] [,3]
[1,] "HIGD1C" "SNP_A-2058537" "4"
[2,] "HIGD1C" "SNP_A-1955347"
2007 Dec 14
1
Result depends on previous result; easy with a loop; but without a loop?
Dear all,
I am pretty sure that this has been discussed before. Unfortunately, I
can not find anything in the archives -- probably because I am
"RSiteSearching" for the wrong terms. If I remember correctly, I think I
even asked this question a few years ago. But I cannot even find this.
The basic problem is that a result depends on a previous result. This is
easy with a loop--but
2004 Feb 24
2
matrix() Help
I have a question related to matrix().
The code below randomly generates 3 Poisson numbers into a 3 by 1 matrix:
> matrix1 <- matrix(rpois(3,lambda=2),nrow=3,ncol=1)
And I use list() to see what they are:
[,1]
[1,] 3
[2,] 1
[3,] 4
, which is what I had intended.
I then I want to randomly generate y Normal numbers into a 3 by 8 matrix. y in this case would be 3, 1, and 4; so
2010 Apr 30
2
deriving mean from specific cases
Hi all,
I have a large dataset that has >10k entries. The dataset is stored in a
dataframe with the headers:
SubID Condition1 Condition2 Result1 Result2
There are multiple entries for a given SubID(Subject ID). Condition 1 has 3
levels and condition2 has 2 levels (therefore there are 6 possible
combinations all together e.g. Cond1 Level1 x Cond2 Level 1 etc.) and i need
to compute for
1. The