Re: [R] Error message in ifthen else

2008-10-02 Thread Jason Lee
ing. When I put that on a loop, it gives me the above error. Please advise. Thanks. On Fri, Oct 3, 2008 at 1:57 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 02/10/2008 10:07 PM, Jason Lee wrote: > >> Hi, >> >> I came across the below error when I try to do

[R] Error message in ifthen else

2008-10-02 Thread Jason Lee
Hi, I came across the below error when I try to do ifelse condition:- Error in "[<-"(`*tmp*`, test, value = rep(yes, length = length(ans))[test]) : incompatible types What I am trying to accomplish is :- for(x in 1:ncol(filterpred)){ sumno<-sum(filterpred[no,x]) sumyes<-sum(filterpred[

[R] How to remove columns of table in R recursively

2008-09-29 Thread Jason Lee
Hi R-list, I would like to know how to perform any elimination of attribute (column) in R. E.g I have:- 20,21,22,23,24,25,normal 1,2,3,4,5,5,normal 0,1,0,2,3,4,abnormal ... I intend to do a checking on each column:- If the column sum of abnormal is 0 but the column sum of normal is nonzero, i

[R] How to convert/map jacktest results to dataframe or file

2008-07-17 Thread Jason Lee
Hi, I have issue a jacktest command and it produces me a list of numbers. I would like to map them to a dataframe so I could save it to a file. I tried to convert the mvr.obj to vector but when I check the class, it is still jacktest. converted<-as.vector(mvr.obj) Or any otehr way to map this t

Re: [R] How to extract component number of RMSEP in RMSEP plot

2008-07-16 Thread Jason Lee
Hi Bjorn, Greetings. I would like to know how can i extract component no. when the RMSEP is lowest? > > Currently, I only plot it manually and then only feed the ncomp to the jack > knife command. However, I would like to automate this step. > > Please let me know. Many thanks. > > Rgrds, >

Re: [R] How to extract component number of RMSEP in RMSEP plot

2008-07-16 Thread Jason Lee
Hi R-listers, > > I would like to know how can i extract (ncomps) component no. when the > RMSEP is lowest for PLS package? > > Currently, I only plot it manually, validationplot(pls) and then only feed > the ncomp to the jack knife command. However, I would like to automate this > step. > > Pleas

[R] How to extract component number of RMSEP in RMSEP plot

2008-07-15 Thread Jason Lee
Hi R-listers, I would like to know how can i extract component no. when the RMSEP is lowest? Currently, I only plot it manually and then only feed the ncomp to the jack knife command. However, I would like to automate this step. Please let me know. Many thanks. Rgrds, [[alternative HTM

Re: [R] How can i do an automatic upgrade of R 2.5.1 to R 2.7.1

2008-07-06 Thread Jason Lee
I checked from Ubuntu distro and the latest package only show 2.5.1. Anyone has the similar problem too? On Mon, Jul 7, 2008 at 11:39 AM, Jason Lee <[EMAIL PROTECTED]> wrote: > Hi, > > I am aware this is somehow FAQ question but I ve been searching from R-cran > archive about

[R] How can i do an automatic upgrade of R 2.5.1 to R 2.7.1

2008-07-06 Thread Jason Lee
Hi, I am aware this is somehow FAQ question but I ve been searching from R-cran archive about the related matter and could not find anything closer to this. I want to upgrade my R version from 2.5.1. to 2.7.1. What is the best way to load the latest one apart from installing the packages (tar.gz)

[R] Problem in installing Biobase

2008-07-04 Thread Jason Lee
Hi, Recently I try to install Biobase component using the tutorials from cran.r-project.org/doc/Rnews/Rnews_2006-5.pdf I tried u <- "http://bioconductor.org/biocLite.R"; > source(u) > biocLite("pkgDepTools", dependencies=TRUE) Running biocinstall version 2.0.8 with R version 2.5.1 Your version o

Re: [R] Help in using PCR

2008-07-01 Thread Jason Lee
Hi, Thanks for the reply. Basically I dont have any label for my data except column 1 which is labeled with Sample1, Sample2...etc...(vertical). My cancerv1 data is data.frame. So, I used df <- data.frame( x=I(coef(cancerv1(,2:407))), y=cancerv1[,408])before feeding to PCR. However, I get the b

[R] Query on packages for Emerging Patterns

2008-07-01 Thread Jason Lee
Hi, Currently I have a data set of 2 classes and I am interedted to use emerging patterns algorithm. I wondered if there is any packages or recommended code available for this? Please advise.Thanks. [[alternative HTML version deleted]] __ R-h

[R] Help in using PCR

2008-06-30 Thread Jason Lee
Hi, Currently I have a dataset of 2400*408. And I would like to apply PCR method to study the any correlation between the tests. My current data is in data.frame and I have formed horizontal(1-407) to be the exact data, and (408) to be my results data(Yes and No) I have also binarized these Yes an

Re: [R] Problem in executing R on server

2008-06-05 Thread Jason Lee
. Thanks. On Fri, Jun 6, 2008 at 2:49 PM, Ray Brownrigg <[EMAIL PROTECTED]> wrote: > What does the limit (or "ulimit -a" in sh or bash) command (outside of R) > respond with? > > In Solaris, there can be per-user limits to memory use. > > HTH, > Ray Brownrigg

Re: [R] Problem in executing R on server

2008-06-05 Thread Jason Lee
t; wrote: > And what is your sessionInfo() in each case! > > Jason Lee wrote: > >> Hi, >> >> I query free -m, >> >> On my server it is, >> >> total used free sharedbuffers cached >> Mem: 321

Re: [R] Problem in executing R on server

2008-06-05 Thread Jason Lee
d in your Sun Solaris server? How much RAM is > installed on your PC? > > Jason Lee wrote: > >> Hi, >> >> I am actually trying to do some matrix multiplications of large datasets >> of 3000 columns and 150 rows. >> >> And I am running R version 2.7.0.

Re: [R] Problem in executing R on server

2008-06-05 Thread Jason Lee
<[EMAIL PROTECTED]> wrote: > > On 6/06/2008, at 1:36 PM, Jason Lee wrote: > > Hi R-listers, >> >> I have problem in executing my R on server. It returns me >> >> Error: cannot allocate vector of size 15.8 Mb >> >> each time when i execute

Re: [R] Problem in executing R on server

2008-06-05 Thread Jason Lee
I am running on Sun Solaris server. Please advise. Thanks. On Fri, Jun 6, 2008 at 11:50 AM, Erik Iverson <[EMAIL PROTECTED]> wrote: > > > Jason Lee wrote: > >> Hi R-listers, >> >> I have problem in executing my R on server. It returns me >> >&g

[R] Problem in executing R on server

2008-06-05 Thread Jason Lee
Hi R-listers, I have problem in executing my R on server. It returns me Error: cannot allocate vector of size 15.8 Mb each time when i execute R on the server. But it doesnt give me any problem when i try executing on my own Pc (except it runs extremely slow). Any pointers to this? I tried to r

Re: [R] Need advise in grab the line number of sorted list in R

2008-06-02 Thread Jason Lee
e calculation? On Tue, Jun 3, 2008 at 12:02 AM, Marc Schwartz <[EMAIL PROTECTED]> wrote: > on 06/02/2008 08:45 AM Jason Lee wrote: > >> Hi, >> >> I have a data frame which format is like below:- >> >>X Y Z >> 131 22.2 3.4 4.4 >

[R] Need advise in grab the line number of sorted list in R

2008-06-02 Thread Jason Lee
Hi, I have a data frame which format is like below:- X Y Z 131 22.2 3.4 4.4 150 20.0 12.2 4.5 etc... And I have sorted the data frame. However, I would like to grab one of these elements in the data frame. Also, i would like to number these rows so that when i grab a particul

[R] How to pass variable of for loop on read table text

2008-05-23 Thread Jason Lee
Hi, I have a couple of text and would like to automate of reading these multiple files using (namely; text1.txt, text2.txt) for(y in 3:10){ data$y<-read.table('text$y.txt')} But it seems not allow. Any idea? Thanks. [[alternative HTML version deleted]] ___

[R] Fwd: Advise in R- plotting graphs

2008-05-23 Thread Jason Lee
00), ncol=3) > plot(x[,1], x[,2], type='l') > points(x[5,1], x[5,2], pch=17, cex=3, col='red') # plot point #5 > > On Fri, May 23, 2008 at 8:50 AM, Jason Lee <[EMAIL PROTECTED]> wrote: > >> Hi >> >> I have a data table matrix,"data

[R] Advise in R- plotting graphs

2008-05-23 Thread Jason Lee
Hi I have a data table matrix,"data" which looks like below:- V1V2 V3 1 -6382.719 -1096.554 6998994 2 -some values- 3 -some values- 4 -some values- 5 -some values- Querying dim of "data" gives me 3 columns and 5 rows. And currently I want to plot "V1" against "V2" with the

[R] Problem in converting natural numbers to bits and others

2008-05-21 Thread Jason Lee
Hi, I just started using R for about one week and I have few problems. i)I have a problem in finding right function to convert a table of natural numbers to bitwise. For a simple example; I have the below table:- Column Col1 Col2 Col3 Sample1 57 10 Sample2 02 1 S

[R] Need help in matrix multiplication error

2008-05-19 Thread Jason Lee
Hi, I have a data file which is named test.txt as below. Prior to that, I have converted the last row from nominal to numeric using as.integer. Statement T1001 T1002 T1003 T1004 T1005 T100 T1014 T1021 T1022 T1023 1 0 0 0 0 0 00 0 1 0 0 20