[R] general question on R setup/environment

2010-11-17 Thread Bernd Jagla
Hi, Someone recently told me that R is not working well with other programs in a clustered environment. I believe we are using gensoft and working in a redhat environment. What was also mentioned was that there are problems when running multiple R instance at the same time. Personally I haven't

[R] spearman metric for hierarchical clustering

2008-11-11 Thread Bernd Jagla
I need to calculate a hierarchical clustering using the spearman metric. Is there such functionality within R, and if so can you give me an example on how to use it? Thanks, Bernd [[alternative HTML version deleted]] __ R-help@r-project

[R] summary of summaries

2008-03-17 Thread Bernd Jagla
Hi, I have a few hundreds files with numerical information of different length but with the same column structure. I use the following code to get summary statistics fplist <- list.files(pattern=".*analysis") for (fp in fplist){ x2 <- read.delim(fp) summary(x2)

[R] R command line arguments

2008-01-04 Thread Bernd Jagla
Hi, I would like start R in BATCH mode and submit my own parameters. Or in other words, I would like to specify variables from the command line and execute a script using those. I have been looking at commandArgs and calling R from the command line under bash: R CMD BATCH --no-save --args

Re: [R] compare strings

2007-11-30 Thread Bernd Jagla
sage- |From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On |Behalf Of Bernd Jagla |Sent: Friday, November 30, 2007 10:25 PM |To: r-help@r-project.org |Subject: [R] compare strings | |Sorry for the question, but I really cannot find the right search terms to |find an answer.. | | | |I have a data f

Re: [R] compare strings

2007-11-30 Thread Bernd Jagla
AIL PROTECTED] On |Behalf Of Bernd Jagla |Sent: Friday, November 30, 2007 10:25 PM |To: r-help@r-project.org |Subject: [R] compare strings | |Sorry for the question, but I really cannot find the right search terms to |find an answer.. | | | |I have a data frame with strings in some of the columns. | |I w

[R] compare strings

2007-11-30 Thread Bernd Jagla
Sorry for the question, but I really cannot find the right search terms to find an answer.. I have a data frame with strings in some of the columns. I want to know all the rows where the strings in both columns are equal. How do I do this? Thanks, Bernd [[alternative HTML

Re: [R] looking for packages that visualize nucleotide sequence properties

2007-11-27 Thread Bernd Jagla
your kind help. Bernd |-Original Message- |From: Jim Lemon [mailto:[EMAIL PROTECTED] |Sent: Tuesday, November 27, 2007 5:30 AM |To: Bernd Jagla |Subject: Re: [R] looking for packages that visualize nucleotide sequence |properties | |Bernd Jagla wrote: |> Hi there, |> |> I am lo

[R] looking for packages that visualize nucleotide sequence properties

2007-11-26 Thread Bernd Jagla
Hi there, I am looking for R-packages that can help me visualize properties on nucleotide sequences. I want to display sequences in the 1-100K base range as lines and plot features above and below those lines. Any ideas would be welcome. Thanks, Bernd _

[R] visualizing nucleotide sequence properties

2007-11-26 Thread Bernd Jagla
Hi there, I am looking for R-packages that can help me visualize properties on nucleotide sequences. I want to display sequences in the 1-100K base range as lines and plot features above and below those lines. Any ideas would be welcome. Thanks, Bernd [[alternative HTM

[R] referring to a data-frame column using a variable

2007-11-12 Thread Bernd Jagla
Hi, I would like to refer to a column in a data frame using a variable. How would I do this? Something like: c1<-"column1" dat${c1} where names(dat) includes 'column1' Thanks, Bernd [[alternative HTML version deleted]] ___

[R] counting with factors

2007-11-02 Thread Bernd Jagla
Hi there, I have something that appears to be a factor called drug: Typeof(drug) => Integer As.numeric(drug) gives a long list Levels(drug) gives a long list, too. Now I want something like the summary function does: I want to count how often each level occurs in the given vector. My p

Re: [R] Qsub - unable to open connection to X11 display

2007-10-29 Thread Bernd Jagla
--Original Message- |From: Benilton Carvalho [mailto:[EMAIL PROTECTED] |Sent: Monday, October 29, 2007 1:26 PM |To: Duncan Murdoch |Cc: Bernd Jagla; r-help@r-project.org |Subject: Re: [R] Qsub - unable to open connection to X11 display | |But doesn't it suffice to replace png() by bitmap()?

Re: [R] Qsub - unable to open connection to X11 display

2007-10-29 Thread Bernd Jagla
thing similar... -B |-Original Message- |From: Martin Morgan [mailto:[EMAIL PROTECTED] |Sent: Monday, October 29, 2007 12:35 PM |To: Bernd Jagla |Cc: r-help@r-project.org |Subject: Re: [R] Qsub - unable to open connection to X11 display | |Hi Bernd, | |A little speculation / uninformed input

[R] Qsub - unable to open connection to X11 display

2007-10-29 Thread Bernd Jagla
Hi there, I want to run an R script on a cluster with qsub. Obviously I don't want to display any X window, but I want use png() or something else to write out images. Unfortunately I get the following error message: > png(filename = " ALL.png", width = 480, height = 480, pointsize = 12, b

Re: [R] plotting labels on barplot

2007-10-26 Thread Bernd Jagla
AM |To: Bernd Jagla |Cc: r-help@r-project.org |Subject: Re: [R] ploting labels on barplot | |On 10/25/07, Bernd Jagla <[EMAIL PROTECTED]> wrote: |> Again me. |> |> |> |> I want to plot the numbers on the bars of a barplot. | |This is usually a bad idea, as the size of the n

[R] ploting labels on barplot

2007-10-25 Thread Bernd Jagla
Again me. I want to plot the numbers on the bars of a barplot. This can be done using hist function when setting the label argument true (i.e. data <- c(1,2,3,4) hist(data, labels=T) When I try this using barplot I get an error: > barplot(summary(data), labels=T) Error in

Re: [R] data frame usage

2007-10-25 Thread Bernd Jagla
GREAT!!! Thanks so much !!! -B |-Original Message- |From: John Kane [mailto:[EMAIL PROTECTED] |Sent: Thursday, October 25, 2007 1:45 PM |To: Bernd Jagla; 'Henrique Dallazuanna' |Cc: r-help@r-project.org |Subject: Re: [R] data frame usage | |I think I also misunderstood. It s

Re: [R] data frame usage

2007-10-25 Thread Bernd Jagla
just "echo" the values for a specific class. I hope you understand better what I mean Thanks again, Bernd |-Original Message- |From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED] |Sent: Thursday, October 25, 2007 1:34 PM |To: Bernd Jagla |Cc: r-help@r-project.org |Subject: Re

Re: [R] data frame usage

2007-10-25 Thread Bernd Jagla
Wow, that easy... And how can get only the values for a specific class? Like tapply(x$val, x$label, ?echo?)$class1 What should echo be? Thanks, B |-Original Message- |From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED] |Sent: Thursday, October 25, 2007 1:15 PM |To: Bernd Jagla |Cc: r

[R] data frame usage

2007-10-25 Thread Bernd Jagla
Hi, I am new to R and couldn't find any information on how to handle my table data that I just read in the way I want to use it.. I read in a table from a file: x <- read.delim("filenam", header=TRUE) one column (x$label) hold the class labels. Another holds some values (x$val). I want to calcul