Displaying 20 results from an estimated 1000 matches similar to: "bootstrap"
2005 May 30
0
a question about read.marrayRaw
Hi, everyone,
I ran the test case in "Introduction to the Bioconductor
marrayInput package first. When I ran the session in (read.marrayRaw) I got the following error messages. Other sessions work well.
The functions and errors are labled with blue and red respectively.
>mraw <- read.Spot(path = datadir, layout = galinfo$layout, gnames = galinfo$gnames, target = swirlTargets)
Error
2005 Jan 26
10
Ssh flow does not go into correct class. Help!
I''m a new comer. I have problems using tc+htb. I run the following commands, and expect outgoing ssh flow goes into 1:11. But actually it goes into default 12. What''s wrong?
tc qdisc add dev eth0 root handle 1: htb default 12
tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit ceil 2000kbit prio 1
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 100kbit ceil
2013 Jun 27
3
using "rollapply" to calculate a moving sum or running sum?
#using "rollapply" to calculate a moving sum or running sum?
#I am tryign to use rollapply to calcualte a moving sum? #I tried
rollapply and get the error message
#"Error in seq.default(start.at, NROW(data), by = by) :
# wrong sign in 'by' argument"
#example:
mymatrix <- ( matrix(data=1:100, nrow=5, ncol=20) )
mymatrix_cumsum <- ( matrix(data=NA, nrow=5,
2009 Jul 20
1
S4 method dispatch with inheritance
Hi,
I'm trying to create a new S4 class (myMatrix) which for now just
extends dgCMatrix (from package Matrix). Then I want to use "[" which is
defined in Matrix.
Out of the box with "[" (defined in Matrix) I lose the class information
and the result is an object of class dgCMatrix. If I specify a
"["-method for myMatrix, it is not used because a signature
2005 Jan 21
6
Avoiding a Loop?
Dear R-Helpers,
I have a matrix where the first column is known. The second column is
the result of multiplying this first column with a constant "const". The
third column is the result of multiplying the second column with
"const".....
So far, I did it like this (as a simplified example):
nr.of.columns <- 4
myconstant <- 27.5
mymatrix <- matrix(numeric(0), nrow=5,
2004 Aug 06
0
Öйú±±¾©¹ú¼Ê¿Æ¼¼²©ÀÀ»áôßÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ
µÚÎå½ì±±¾©¡°¹ú¼ÊÖÜ¡±³ÏÑûÄúµÄ(¹«Ë¾¡¢ÆóÒµ)²Î¼Ó --
Öйú±±¾©¹ú¼Ê¿Æ¼¼²©ÀÀ»áôßÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ
¡°ÊÀ½ç500Ç¿CEOÓëÖйú¶¥¼¶ÆóÒµÊ×ÄÔÂÛ̳¡±
»áÒé˵Ã÷£º
¾ÖлªÈËÃñ¹²ºÍ¹ú¹úÎñÔºÅú×¼£¬
ÖлªÈËÃñ¹²ºÍ¹ú¿Æѧ¼¼Êõ²¿¡¢Íâ¾Ã³²¿¡¢½ÌÓý²¿¡¢ÐÅÏ¢²úÒµ²¿¡¢Öйú¹ú¼ÊóÒ×´Ù½øίԱ»á¡¢¹ú¼Ò֪ʶ²úȨ¾ÖºÍ±±¾©ÊÐÈËÃñÕþ¸®¹²Í¬Ö÷°ì£¬
±±¾©ÊÐó´Ù»á³Ð°ìµÄ¡ª¡ªµÚÎå½ìÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ(ÒÔϼò³Æ¿Æ²©»á(¹ú¼ÊÖÜ)£¬
2004 Aug 06
0
Öйú±±¾©¹ú¼Ê¿Æ¼¼²©ÀÀ»áôßÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ
µÚÎå½ì±±¾©¡°¹ú¼ÊÖÜ¡±³ÏÑûÄúµÄ(¹«Ë¾¡¢ÆóÒµ)²Î¼Ó --
Öйú±±¾©¹ú¼Ê¿Æ¼¼²©ÀÀ»áôßÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ
¡°ÊÀ½ç500Ç¿CEOÓëÖйú¶¥¼¶ÆóÒµÊ×ÄÔÂÛ̳¡±
»áÒé˵Ã÷£º
¾ÖлªÈËÃñ¹²ºÍ¹ú¹úÎñÔºÅú×¼£¬
ÖлªÈËÃñ¹²ºÍ¹ú¿Æѧ¼¼Êõ²¿¡¢Íâ¾Ã³²¿¡¢½ÌÓý²¿¡¢ÐÅÏ¢²úÒµ²¿¡¢Öйú¹ú¼ÊóÒ×´Ù½øίԱ»á¡¢¹ú¼Ò֪ʶ²úȨ¾ÖºÍ±±¾©ÊÐÈËÃñÕþ¸®¹²Í¬Ö÷°ì£¬
±±¾©ÊÐó´Ù»á³Ð°ìµÄ¡ª¡ªµÚÎå½ìÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ(ÒÔϼò³Æ¿Æ²©»á(¹ú¼ÊÖÜ)£¬
2005 Feb 21
3
Sorting a matrix on two columns
Hello,
If a matrix with 5 columns has been defined and the first two columns
need to be sorted in ascending order, how can this be achieved whilst
ensuring the
other 3 columns data are in relative position to the sorted columns?
Glen Jones
[[alternative HTML version deleted]]
2006 Apr 04
2
Selecting out certain values from a MATRIX
I have two objects, one matrix and one vector.
I want to use my vector to subset certain values out of my matrix.
For example:
I want to tell R, to select out all rows in myMatrix into a new myMatrix2 IF
that corresponding row is less than a 0.5 in myVector.
So:
myMatrix = a matrix of 8000 by 20
myVector = vector of 8000
myMatrix2 = a matrix of < 8000 by 20 (based on selection criteria in
2004 Aug 06
0
ÏÖ´ú׿Խ£¨ÉîÛÚ£©ÏîÄ¿¹ÜÀíÑо¿Éú¿Î³Ì½øÐÞ°àÕÐÉú
ÈÈÃŵÄѧ¿Æ ȨÍþµÄ»ú¹¹ Ò»Á÷µÄר¼Ò ×îеÄÄÚÈÝ Áé»îµÄÊÚ¿Î
»ªÖпƼ¼´óѧ½¯ÊÏ»ù½ð¹¤ÒµÅàѵÖÐÐÄ ±±¾©ÏÖ´ú׿Խ¹ÜÀí¼¼Êõ½»Á÷ÖÐÐÄ
ÔÚÖ°ÈËÔ±ÏîÄ¿¹ÜÀíÑо¿Éú¿Î³Ì½øÐÞ°à
ÕÐ Éú ¼ò ÕÂ
Ò»¡¢ÏîÄ¿¹ÜÀíÑо¿Éú¿Î³Ì½øÐÞ°àµÄ¿ªÉè±³¾°
2004 Nov 01
5
make apply() return a list
Hi,
I have a dataframe (say myData) and want to get a list (say myList) that
contains a matrix for each row of the dataframe myData. These matrices are
calculated based on the corresponding row of myData. Using a for()-loop to do
this is very slow. Thus, I tried to use apply(). However, afaik apply() does
only return a list if the matrices have different dimensions, while my
matrices have
2012 Jul 31
2
Remove a complete row as per the Range in a Matrix
Hi,
Here i have a Matrix
MyMatrix <-
Name Age
--------- -------
ANTONY 27
IMRAN 30
RAJ 22
NAHAS 32
GEO 42
and here i have an array with Minimum and Maximum values.
MinMaxArray <- data.frame(MIN = 25,MAX=35)
MIN MAX
------ --------
25 35
2008 May 21
2
Converting Data Types
Hi,
How can I convert the matrices to list.
For example I have this snippet:
samples<-mymatrix[1,]
print(samples)
which prints:
V1 V2 V3 V4 V5 V6
1 103.9 88.5 242.9 206.6 175.7 164.4
How can I convert the object "samples" such that it prints:
[1] 103.9 88.5 242.9 206.6 175.7 164.4
The reason I ask this because I can't use the former
"samples"
2012 Aug 01
1
Error message: $ operator is invalid for atomic vectors
HI,
The code was working perfectly fine yesterday and today, until half an hour ago.? Couldn't find any problems in the code. Still, I am getting error message.
myMatrix <- data.matrix(read.table(text="
Name??????????? Age
ANTONY??????? 27
IMRAN????????? 30
RAJ????????????????? 22
NAHAS????????? 32
GEO??????????????? 42
", header=TRUE))
MinMaxArray? <- data.frame(MIN =
2007 Feb 12
3
processing a large matrix
I would like to compare every column in my matrix with every other column and
get the r-squared.
I tried using the following formula and looping through every column:
> summary(lm(matrix[,x]~matrix[,y]))$r.squared
If I have 10,000 columns, the loops (10,000 * 10,000) take forever even if
there is no formula inside.
Then, I attempted to vectorize my code:
> cor(matrix)^2
With 10,000
2006 Mar 16
6
removing ROWS with missing values
I am trying to find out if R can recognize specific criteria for removing
rows (i.e. a prexisting function)
I have a matrix myMatrix that is 12000 by 20
I would like to remove rows from myMatrix that have:
-999 across all columns
-999 across all columns but one
-999 across all columns but two
-999 across all columns but three
-999 across all columns but four
-999 across all columns but five
2011 Oct 11
2
binding all elements of list (character vectors) to a matrix as rows
dear r-users,
i have got a problem which i am trying to solve:
i have got the following commands:
Mymatrix <- matrix(1:9,ncol=3)
Z <-
list("V1"=c("a","",""),"V2"=c("b","",""),"V3"=c("c","",""),"V4"=c("d","",""))
Mymatrix <-
2005 Aug 08
2
computationally singular
Hi,
I have a dataset which has around 138 variables and 30,000 cases. I am
trying to calculate a mahalanobis distance matrix for them and my
procedure is like this:
Suppose my data is stored in mymatrix
> S<-cov(mymatrix) # this is fine
> D<-sapply(1:nrow(mymatrix), function(i) mahalanobis(mymatrix, mymatrix[i,], S))
Error in solve.default(cov, ...) : system is computationally
2001 Sep 17
0
vorbis-dev´Ô ¾È³çÇϼ¼¿ä
Untitled Document Áö¿ªÀ» °ü¸®ÇÏ½Ç ÁÖºÎÆÀÀåÀ» ÃʺùÇÕ´Ï´Ù !
´ç»ç´Â ±èÄ¡³ÃÀå°í Àü¹®À¯Åë¾÷ü·Î¼
°¢ Áö¿ªÀ» °ü¸®ÇÏ½Ç ÁÖºÎÆÀÀå´ÔÀ» ¸ð½Ê´Ï´Ù
ÇöÀç ±èÄ¡³ÃÀå°í º¸±ÞÀ²Àº ´ëµµ½Ã°¡ 25%,Áö¹æÀº 15% ¼öÁØ¿¡ ºÒ°ú
ÇÏÁö¸¸ À̹ø³âµµ ºÎÅÍ ¸¹Àº ÆǸÅÁõ°¡·Î ÀÎÇØ ³â°£ ÆǸŴë¼ö°¡ ÀÌ¹Ì TV³ª ³ÃÀå°í¿¡ À°¹ÚÇÏ°í ÀÖÀ¸¸ç ¾ÕÀ¸·Î ´õ¿í ´õ ¸¹Àº ÁֺεéÀÌ ±èÄ¡³ÃÀå°í¸¦ ±¸ÀÔ ÇÒ °ÍÀ¸·Î ¿¹»óµÇ°í ÀÖ½À´Ï´Ù.
2001 Sep 17
2
vorbis´Ô ¾È³çÇϼ¼¿ä
Untitled Document Áö¿ªÀ» °ü¸®ÇÏ½Ç ÁÖºÎÆÀÀåÀ» ÃʺùÇÕ´Ï´Ù !
´ç»ç´Â ±èÄ¡³ÃÀå°í Àü¹®À¯Åë¾÷ü·Î¼
°¢ Áö¿ªÀ» °ü¸®ÇÏ½Ç ÁÖºÎÆÀÀå´ÔÀ» ¸ð½Ê´Ï´Ù
ÇöÀç ±èÄ¡³ÃÀå°í º¸±ÞÀ²Àº ´ëµµ½Ã°¡ 25%,Áö¹æÀº 15% ¼öÁØ¿¡ ºÒ°ú
ÇÏÁö¸¸ À̹ø³âµµ ºÎÅÍ ¸¹Àº ÆǸÅÁõ°¡·Î ÀÎÇØ ³â°£ ÆǸŴë¼ö°¡ ÀÌ¹Ì TV³ª ³ÃÀå°í¿¡ À°¹ÚÇÏ°í ÀÖÀ¸¸ç ¾ÕÀ¸·Î ´õ¿í ´õ ¸¹Àº ÁֺεéÀÌ ±èÄ¡³ÃÀå°í¸¦ ±¸ÀÔ ÇÒ °ÍÀ¸·Î ¿¹»óµÇ°í ÀÖ½À´Ï´Ù.