search for: anisah

Displaying 20 results from an estimated 22 matches for "anisah".

Did you mean: animal
2008 Feb 08
6
writing a function
...ngth=n) for(i in 1:n){ y[i]=i } return(y[i]) } when i tried called on my matrix function; say mm(5,10). what i got is the single value of 15..where's is my matrix?? same thing happened to my vector function. Please help me figure out these problems. Thanks a bunch!! Cheers, Anisah --------------------------------- [[alternative HTML version deleted]]
2008 Feb 12
3
reverse vector elements
...function of a vector and reverse the order of its elements. Here is my code: revector<-function(n){ y=vector(length=n) for(i in n:1){ y[i]=i } return(y) } i want my output to be like this: y [1] 10 9 8 7 6 5 4 3 2 1 Any suggestion?? Thanks!! Cheers, Anisah --------------------------------- [[alternative HTML version deleted]]
2008 Jun 12
3
p-value
...ta ( attach with). What i'm going to do is to test whether this data is uniformly distributed or not by finding the p-value. I've tried using the punif command but it gave me the value of 1 of all the data. Any suggestion on R command to find the p-value??Thanks in advance!! Cheers, Anisah -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: midpoint.txt URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080612/cc5dfe2c/attachment.txt>
2008 Feb 07
2
matrix loop
...I'm trying to make a loop of a (5x10) matrix and below are my codes. Could anybody help me figure out why my loop is not working. Thanks in advance!! m<-1:5 n<-1:10 for(i in 1:length(m)) { for(j in 1:length(n)) { y[i,j]=sum(i,j) y<-as.matrix(y[i,j]) } } cheers, Anisah --------------------------------- [[alternative HTML version deleted]]
2008 Feb 13
4
writing a simple function
...rt this problem as i'm in process of learning of writing a function. Many thanks overlap<-function(m,n){ t=length(m) v=length(n) tt=logical(t) tv=logical(v) for(i in 1:m){ for(i in 1:n){ if(v(i,j)<=t(i,j)){ tt=T tv=T } } } k=c(tt,tv) return(k) } Regards, Anisah --------------------------------- [[alternative HTML version deleted]]
2007 Dec 31
2
How to import ENSEMBL text data using R
...ate but when i wrote the command an error had occur. It say ?Error in read.table"C:/Users/user/Documents/cfa-1.txt", header = T, sep = "\t",skip=10) :more columns than column names?. Please help me with this as i?m a first time user to R. Thanks in advance. Cheers, Anisah --------------------------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cfa-1.txt Url: https://stat.ethz.ch/pipermail/r-help/attachments/20071231/c50b082d/attachment.txt
2008 Jan 29
1
remove similar values
hello!! say that i have the values of x1 and x2. my x1 has longer length than x2. how am i going to remove the similar values of x1 and x2. Any suggestion?? Thanks in advance!! Cheers, Anisah e f [1,] 17358865 17906353 [2,] 17966995 21295547 [3,] 21306539 27880531 [4,] 27880531 34118702 [5,] 34166504 35395488 [6,] 36111044 36132622 [7,] 36266288 37916920 [8,] 36854306 43786190 [9,] 43786190 44322336 [10,] 44322336 46302360 [11,] 45...
2008 Feb 05
1
Vector loop
hi, I'm in my learning process of doing a programming with "for" loop. How to make a loop of a vector of length 10 where elements are 1,2,3,4,5,6,7,8,9,10. Any suggestion needed!! Many thanks. Cheers, Anisah --------------------------------- [[alternative HTML version deleted]]
2008 Feb 15
1
help on loop function
...x?? i've tried my own function but it's only applies for 2x2 matrix. Here is my code: overlap<-function(x,y){ m=length(x) n=length(y) for(i in 1:m){ for(j in 1:n){ if(x[i]>=y[j]) print(TRUE) else print(FALSE) } } } Many thanks!! Cheers, Anisah --------------------------------- [[alternative HTML version deleted]]
2008 Feb 17
1
extracting elements by using logical values
...TRUE suppose i want my output to be: [1] 1 2 [1] 2 3 overlapped<-function(x,y){ z<-rbind(x,y) for(i in 1:nrow(z)){ overlap<-(z[i,1]<=z[,2]&z[i,2]>=z[,1])[-i] if(any(overlap)) print(TRUE) else print(FALSE) } } Thanks in advance!! cheers, Anisah --------------------------------- [[alternative HTML version deleted]]
2008 Jan 24
1
adjustment on the x-axis scale width
...31 34118702 35395488 36132622 37916920 [8] 43786190 44322336 46302360 53494622 62105336 63817440 72637088 [15] 79875476 94545992 96506368 103123936 116908456 126190072 127446552 [22] 131781664 154658264 176302744 181670472 182625272 182878168 183946152 [29] NA cheers, Anisah --------------------------------- [[alternative HTML version deleted]]
2008 Jan 22
1
stripchart
...2 [22] 131781664 154658264 176302744 181670472 182625272 182878168 183946152 [29] NA R-command: stripchart(e,method="stack",col="green",add=F,at=0.0) stripchart(f,method="stack",col="blue",add=T,at=0.0) Thanks in advance. Cheers, Anisah --------------------------------- [[alternative HTML version deleted]]
2008 Jan 08
3
splitting the column
...uot; hsa19 40824500 38556448 " " 121690672 121820640 16 " [21,] "CS 13 22 " " cfa1 121820640 124798800 " "2978160" "7" " hsa19 38391408 34709332 " " 124798800 NA NA " Thanks in advance. Cheers, Anisah --------------------------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: nw.txt Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080108/59d30d46/attachment-0002.txt
2008 May 23
3
extracting columns from a list
...ll, i have 2 lists of data with each of the list contain 14 columns. How am i going to extract column 12 and 13 from each of the list ?? and can i combine my extracted columns to form a single list. Attach with are my data. Your coorperation is highly appreciated. Many thanks Regards, Anisah -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 2 lists.txt URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080523/de2af926/attachment.txt>
2008 Jan 28
1
x-axis
...31 34118702 35395488 36132622 37916920 [8] 43786190 44322336 46302360 53494622 62105336 63817440 72637088 [15] 79875476 94545992 96506368 103123936 116908456 126190072 127446552 [22] 131781664 154658264 176302744 181670472 182625272 182878168 183946152 [29] NA cheers, Anisah --------------------------------- [[alternative HTML version deleted]]
2008 Feb 01
2
overlapping intervals
hi!! Below I have 4 columns vector of c and d which are unequal in length.These c and d have 2 columns each where these 2 columns represent an interval values. How am I going to get an overlapping over these interval values?? Please help me sort this problem!! Thanks in advance.. c d 17130612 17587118 17712302 18100404 17712302
2008 Jun 27
1
finding the suitable distribution
...is finding a suitable distribution for my data..I want to run a few test like the poisson and the exponential distribution. Please help me on how to find the p-value for poisson as well as the exponential distribution without knowing the parameter. Is it possible?? Thanks in advance. love, Anisah -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: midpoint breakpoint chromosome.txt URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080627/9a3645e3/attachment.txt>
2008 May 24
1
combine elements of list into a vector
Dear R, Can anybody help me on how to combine all the elements in a list into a single vector?? I've tried using unlist command but it gave me wrong output. Below is the example of the vector output that i want and attach with is my list of data. Any suggestion?? Many Thanks breakp.start 6978022 10249966 10955201 11045352 11814604 13847633
2008 Feb 08
1
remove the missing value,NA
I have two sets of interval data.Below are my two dataset. In these dataset, there is a missing values in each of the data. I want to find the non-overlapping interval values. Here is my code: mysetdiff=function(x,y){ m=length(x) n=length(y) bx = logical(m) by = logical(n) for(i in 1:m){ for(j in 1:n){ if(x[i]<=y[j]){ bx[i] = T by[j] = T }
2008 Feb 09
1
error in the function
Dear lists, i want to find the non-overlapping interval values with this code: mysetdiff=function(x,y){ m=length(x) n=length(y) bx = logical(m) by = logical(n) for(i in 1:m){ for(j in 1:n){ if(x[i]<=y[j+1]){ bx[i] = T by[j] = T NA = NA } } } sx = x[!bx] sy = y[!by] s=c(sx,sy) return(s) } Below is my