[R] R and reading matlab compressed files

2007-11-18 Thread Prof Leslie Smith
Is there any way to read these files (standard .mat files, created by matlab version 7 onwards are compressed)? I know that R.matlab doesn't read them (it even says in the file MatlabServer.m "Matlab v7 saves compressed files, which is not recognized by R.matlab's readMat()" (lines 47-8)). I know

Re: [R] Re ad HTML table

2007-11-18 Thread theta
f.jamitzky wrote: > > You can use htmlTreeParse and xpathApply from the XML library. > something like: > > xpathApply( htmlTreeParse("http://blabla";, useInt=T), "//td", function(x) > xmlValue(x)) > > should do it. > Thank you, any further ideas how to transform the result into a matrix, som

Re: [R] Re ad HTML table

2007-11-18 Thread f.jamitzky
You can use htmlTreeParse and xpathApply from the XML library. something like: xpathApply( htmlTreeParse("http://blabla";, useInt=T), "//td", function(x) xmlValue(x)) should do it. Gamma wrote: > > anyone care to explain how to read a html table, it's streaming data > (updated every second)

Re: [R] Extracting only one part of an string

2007-11-18 Thread Benilton Carvalho
I'd use: sapply(strsplit(Names, "-"), "[[", 1) b On Nov 19, 2007, at 2:14 AM, Tom.O wrote: > > Hi > I wonder if there's a smarter way to do this procedure. > > I have a vector of filenames wher I only am interested in the first > part of > the filename. > I would use the following method of

[R] Extracting only one part of an string

2007-11-18 Thread Tom.O
Hi I wonder if there's a smarter way to do this procedure. I have a vector of filenames wher I only am interested in the first part of the filename. I would use the following method of extracting the first part. But is there a more simple way of doing this? Names <- c("A1-F1.txt","A2-F1.txt","A

Re: [R] Exporting a plot with the LaTeX font lmodern

2007-11-18 Thread Marc Schwartz
On Mon, 2007-11-19 at 01:06 +, Paul Smith wrote: > On Nov 18, 2007 8:04 PM, Paul Smith <[EMAIL PROTECTED]> wrote: > > I would like to export, as a pdf file, a plot with the LaTeX font > > lmodern as the font of my graph. Could somebody please help me? > > I have tried the following but with no

[R] Editorial in Notices of the AMS: Open Source Mathematical Software

2007-11-18 Thread Marc Schwartz
Hi all, For those interested, while scanning /. tonight, I came across a posting which referred to a new editorial in the November 2007 Notices of the American Mathematical Society: Open Source Mathematical Software by David Joyner and William Stein http://www.ams.org/notices/200710/tx071001279p.

Re: [R] Getting theta in italic in a plot

2007-11-18 Thread Paul Smith
On Nov 19, 2007 12:26 AM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Try: > > RSiteSearch("italic greek") Thanks, Gabor. Apparently, no luck: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/75739.html Paul > On Nov 18, 2007 3:36 PM, Paul Smith <[EMAIL PROTECTED]> wrote: > > Dear All, > >

Re: [R] Exporting a plot with the LaTeX font lmodern

2007-11-18 Thread Paul Smith
On Nov 18, 2007 8:04 PM, Paul Smith <[EMAIL PROTECTED]> wrote: > I would like to export, as a pdf file, a plot with the LaTeX font > lmodern as the font of my graph. Could somebody please help me? I have tried the following but with no success: > pdf(file="myplot.pdf",family="ComputerModern") Err

Re: [R] Getting theta in italic in a plot

2007-11-18 Thread Gabor Grothendieck
Try: RSiteSearch("italic greek") On Nov 18, 2007 3:36 PM, Paul Smith <[EMAIL PROTECTED]> wrote: > Dear All, > > Consider the following code: > > plot(0,0) > text(0,0.5,expression(italic(theta))) > > I would like to get theta in italic, but I always get it upright. Any > suggestions? > > Thanks

Re: [R] many zeroes in rgamma ... what's going on?

2007-11-18 Thread Duncan Murdoch
On 18/11/2007 4:15 PM, Gregory Gentlemen wrote: > Dear Dr. Dalgaard, > > Thank you for your insight! In fact, I did read the example documentation, > however, it pretty much told me the same thing that my little simulation did: > there is ALOT of point mass at zero. > > Is there any fix to thi

Re: [R] makeGOGraph node spacing

2007-11-18 Thread Loren Engrav
Thank you I will move it over > From: Ben Bolker <[EMAIL PROTECTED]> > Date: Sun, 18 Nov 2007 08:05:15 -0800 (PST) > To: > Subject: Re: [R] makeGOGraph node spacing > > > > > Loren Engrav wrote: >> >> Greetings >> >> Am newbie using MacOS10.4.10 >> R version 2.6.0 Patched (2007-11-09 r4340

Re: [R] Obtaining x-values from ECDF

2007-11-18 Thread Henrique Dallazuanna
You are rigth, I'm sorry. -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 18/11/2007, David Winsemius <[EMAIL PROTECTED]> wrote: > That would give the x-values. He asked for the y-values at a particular x. > > Instead he might try: > > quantile(cawaocc$LEFF80, pro

Re: [R] many zeroes in rgamma ... what's going on?

2007-11-18 Thread Vincent Goulet
Le dim. 18 nov. à 16:15, Gregory Gentlemen a écrit : > Dear Dr. Dalgaard, > > Thank you for your insight! In fact, I did read the example > documentation, however, it pretty much told me the same thing that > my little simulation did: there is ALOT of point mass at zero. > > Is there any fix

Re: [R] Obtaining x-values from ECDF

2007-11-18 Thread David Winsemius
That would give the x-values. He asked for the y-values at a particular x. Instead he might try: quantile(cawaocc$LEFF80, probs=0.8) or quantile(knots(Fn), probs=0.8) -- David Winsemius Henrique Dallazuanna wrote: > try this: > > knots(cawa.cdp) > > On 18/11/2007, Benjamin Zuckerberg <[

Re: [R] many zeroes in rgamma ... what's going on?

2007-11-18 Thread Gregory Gentlemen
Dear Dr. Dalgaard, Thank you for your insight! In fact, I did read the example documentation, however, it pretty much told me the same thing that my little simulation did: there is ALOT of point mass at zero. Is there any fix to this problem? Seeing that rgamma won't work accurately, if I wan

[R] Getting theta in italic in a plot

2007-11-18 Thread Paul Smith
Dear All, Consider the following code: plot(0,0) text(0,0.5,expression(italic(theta))) I would like to get theta in italic, but I always get it upright. Any suggestions? Thanks in advance, Paul __ R-help@r-project.org mailing list https://stat.ethz.

[R] Problems with connection via proxy

2007-11-18 Thread Peter Wohlmuth
Hi all, when I want to install packages calling install.packages() or Bioconductor with source("http://bioconductor.org/biocLite.R";) biocLite() I get the following error message Error in file(file, "r", encoding = encoding) : unable to open connection In addition: Warning message: cannot ope

Re: [R] constraint matrices in vglm (VGAM package)

2007-11-18 Thread Thomas Yee
Hi Lin, try multi2 = vglm(case123con ~ SNP_A1+SNP_A2+age, multinomial(parallel = TRUE ~ SNP_A1+SNP_A2 - 1), work.analy) or multi3 = vglm(case123con ~ SNP_A1+SNP_A2+age, multinomial(parallel = FALSE ~ 1 + age), work.analy) After your fit,

[R] Exporting a plot with the LaTeX font lmodern

2007-11-18 Thread Paul Smith
Dear All, I would like to export, as a pdf file, a plot with the LaTeX font lmodern as the font of my graph. Could somebody please help me? Thanks in advance, Paul __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEAS

Re: [R] many zeroes in rgamma ... what's going on?

2007-11-18 Thread Peter Dalgaard
Gregory Gentlemen wrote: > Hello fellow R users, > > I wanted to view the density on the standard deviation scale of a > gamma(0.001, 0.001) prior for the precision. I did this as seen in the code > below and found that for some reason rgamma is giving many values equal to > zero, which is stran

Re: [R] how to sort a data.frame by ascending some columns

2007-11-18 Thread Henrique Dallazuanna
You can use 'cbind.data.frame' -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 18/11/2007, affy snp <[EMAIL PROTECTED]> wrote: > > Sorry but one more question. After sorting the data frame, > I need to re-organzie the data frame by taking four columns > to create

Re: [R] how to sort a data.frame by ascending some columns

2007-11-18 Thread affy snp
Sorry but one more question. After sorting the data frame, I need to re-organzie the data frame by taking four columns to create a new data frame (I used cbind). But why the first two colums of the new data frame are not USER_CLONE_ID, WELL_ID columns in the previous data frame. I am attaching the

Re: [R] Obtaining x-values from ECDF

2007-11-18 Thread Henrique Dallazuanna
try this: knots(cawa.cdp) -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 18/11/2007, Benjamin Zuckerberg <[EMAIL PROTECTED]> wrote: > > Dear Group, > > I am using the ecdf function as follows: > > cawa.cdp <- ecdf(cawaocc$LEFF80) > > summary(cawa.cdp) > > Empiric

Re: [R] how to sort a data.frame by ascending some columns

2007-11-18 Thread affy snp
Thanks all of you. It works. Have a good weekend! Allen On 11/18/07, Benilton Carvalho <[EMAIL PROTECTED]> wrote: > > actually, > > clones.info[order(clones.info$CHROMOSOME, clones.info$KB_POSITION),] > > btw, documented in the help file. > b > > On Nov 18, 2007, at 1:54 PM, Henrique Dallazuanna

Re: [R] how to sort a data.frame by ascending some columns

2007-11-18 Thread Benilton Carvalho
actually, clones.info[order(clones.info$CHROMOSOME, clones.info$KB_POSITION),] btw, documented in the help file. b On Nov 18, 2007, at 1:54 PM, Henrique Dallazuanna wrote: > clones.info[order(clones.info$CHROMOSOME),] > > -- > Henrique Dallazuanna > Curitiba-Paraná-Brasil > 25° 25' 40" S 49°

Re: [R] how to sort a data.frame by ascending some columns

2007-11-18 Thread Henrique Dallazuanna
clones.info[order(clones.info$CHROMOSOME),] -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 18/11/2007, affy snp <[EMAIL PROTECTED]> wrote: > Dear list, > > I have a data frame (238304 rows and 6 columns). I want the data frame > sorted by two columns in ascending

[R] Obtaining x-values from ECDF

2007-11-18 Thread Benjamin Zuckerberg
Dear Group, I am using the ecdf function as follows: cawa.cdp <- ecdf(cawaocc$LEFF80) summary(cawa.cdp) Empirical CDF:223 unique values with summary Min. 1st Qu. MedianMean 3rd Qu.Max. 0.07918 1.35700 1.68600 1.61000 1.91200 2.7 I can see by the summary that the y-value f

[R] how to sort a data.frame by ascending some columns

2007-11-18 Thread affy snp
Dear list, I have a data frame (238304 rows and 6 columns). I want the data frame sorted by two columns in ascending order. I am showing the first 5 rows of the data frame > clones.info[1:5,1:6] USER_CLONE_ID CHROMOSOME Expr1002 KB_POSITION Allele_A WELL_ID 1 SNP_A-1855402 17 41419603 414196

[R] many zeroes in rgamma ... what's going on?

2007-11-18 Thread Gregory Gentlemen
Hello fellow R users, I wanted to view the density on the standard deviation scale of a gamma(0.001, 0.001) prior for the precision. I did this as seen in the code below and found that for some reason rgamma is giving many values equal to zero, which is strange since a gamma distribution is con

Re: [R] "Couldn't find function par"

2007-11-18 Thread Prof Brian Ripley
On Sun, 18 Nov 2007, Johannes Hüsing wrote: Peter Dalgaard <[EMAIL PROTECTED]> [Sun, Nov 18, 2007 at 02:20:14PM CET]: Johannes HXXsing wrote: [...] Fehler: konnte Funktion "par" nicht finden par function (..., no.readonly = FALSE) Hmm, this could happen as a result of calling par() in

Re: [R] makeGOGraph node spacing

2007-11-18 Thread Ben Bolker
Loren Engrav wrote: > > Greetings > > Am newbie using MacOS10.4.10 > R version 2.6.0 Patched (2007-11-09 r43408) > Gostats 2.4.0 > RGraphviz 1.16.0 > Xcode X11 1.1.3 - XFree86 4.4.0 > > I want to make an induced GO tree from 1019 genes so I did > >> x <- scan(file="GeneIDsToBioconductor2.txt

Re: [R] "Couldn't find function par"

2007-11-18 Thread Johannes Hüsing
Peter Dalgaard <[EMAIL PROTECTED]> [Sun, Nov 18, 2007 at 02:20:14PM CET]: > Johannes HXXsing wrote: [...] > > > >Fehler: konnte Funktion "par" nicht finden > > > >>par > >> > >function (..., no.readonly = FALSE) > > > Hmm, this could happen as a result of calling par() in a startup file >

Re: [R] odf and unzip: unzip not found

2007-11-18 Thread Max Kuhn
> presumably my zip and unzip are not set up correctly but I dont know how to > do that. I > installed zip and unzip from info-zip.org as suggested in the help file, and > think I > managed set my Windows path to include the folders where they are installed, > but still > no luck. Any ideas? Th

Re: [R] Rename Variable and package gdata

2007-11-18 Thread Harrell, Frank E
The Hmisc package's upData function makes it easy to rename variables, and at the same time you can provide labels, value labels (factor levels), units of measurement, and other things. Frank > Dear R-helpers, > > I hope someone can help me with the following problem: > > I derived a variable fro

Re: [R] expand.grid overflows?

2007-11-18 Thread Adrian Dusa
On Friday 16 November 2007, francogrex wrote: > >cbn<-as.matrix(expand.grid( rep( list(0:1), 50))) > > Error in rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) : > invalid 'times' value > In addition: Warning message: > In rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) : >

Re: [R] "Couldn't find function par"

2007-11-18 Thread Peter Dalgaard
Johannes HXXsing wrote: > I have just installed version 2.6.0 of R using the Ubuntu Dapper Drake > packages from CRAN. I picked the installation option of overwriting > the existing config files. Since then, R starts with an error message > which I don't quite get because the function it claims no

Re: [R] protecting "..."

2007-11-18 Thread Duncan Murdoch
Johannes Hüsing wrote: > Duncan Murdoch <[EMAIL PROTECTED]> [Sat, Nov 17, 2007 at 11:56:52PM CET]: > >> On 17/11/2007 5:04 PM, Johannes Hüsing wrote: >> >>> I just realized that the "..." argument in a function cannot be used >>> without >>> taking precautions sometimes. The following beha

[R] "Couldn't find function par"

2007-11-18 Thread Johannes Hüsing
I have just installed version 2.6.0 of R using the Ubuntu Dapper Drake packages from CRAN. I picked the installation option of overwriting the existing config files. Since then, R starts with an error message which I don't quite get because the function it claims not to have found can be called n