Re: [R] "nonstandard" column names

2008-01-21 Thread Prof Brian Ripley
On Mon, 21 Jan 2008, Moshe Olshansky wrote: > Thanks to all those who responded! > > Now the obvious thing (putting the column name into > double quotes) works for me too. But it didn't work > yesterday! I have no explanation for this. I would have thought 'the obvious thing' for $ was x$`CPI/RP

Re: [R] how to google search for "R"

2008-01-21 Thread Peter Danenberg
Quoth ronggui on Boomtime, Chaos 22, 3174: > Have you tried http://www.rseek.org/ ? That's great, ronggui; looks like they do some things I tried on an ad-hoc basis: * site:r-project.org * filetype:r * etc. but save a lot of typing. Thanks. _

Re: [R] how to google search for "R"

2008-01-21 Thread Peter Danenberg
Quoth Wensui Liu on Boomtime, Chaos 22, 3174: > I really have headache when I do google search for information about > "R". Adding `site:r-project.org' (no quotes) will get you official docs, `site:stat.ethz.ch' will get the mailing lists; for instance: site:r-project.org markov chain or:

Re: [R] how to google search for "R"

2008-01-21 Thread Bruno C.
Personaly, I add "R statistics" to the query and I am pretty satisfied > I really have headache when I do google search for information about "R". > Any tricks or tips? > > thx. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman

Re: [R] how to google search for "R"

2008-01-21 Thread Gabor Grothendieck
I find that just adding R to the search often works. For example, try mixed models R All the top google results do pertain to R. On Jan 22, 2008 1:13 AM, Wensui Liu <[EMAIL PROTECTED]> wrote: > I really have headache when I do google search for information about "R". > Any tricks or tips?

Re: [R] how to google search for "R"

2008-01-21 Thread Chi Chan
I usually add quotes, like: "R project" "R programming language" --Chi On Jan 22, 2008 1:13 AM, Wensui Liu <[EMAIL PROTECTED]> wrote: > I really have headache when I do google search for information about "R". > Any tricks or tips? > > thx. > > __ >

Re: [R] how to google search for "R"

2008-01-21 Thread ronggui
Have you tried http://www.rseek.org/ ? 2008/1/22, Wensui Liu <[EMAIL PROTECTED]>: > > I really have headache when I do google search for information about "R". > Any tricks or tips? > > thx. > > __ > R-help@r-project.org mailing list > https://stat.eth

[R] how to google search for "R"

2008-01-21 Thread Wensui Liu
I really have headache when I do google search for information about "R". Any tricks or tips? thx. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.

Re: [R] row-wise conditional update in dataframe

2008-01-21 Thread Jon Erik Ween
Thanks Jim That got me there. I suppose R prefers absolute field references in scripts rather than macrosubstitutions of field names like you would do in pearl or shell scripts? Anyway, thanks for you help. Cheers Jon Soli Deo Gloria Jon Erik Ween, MD, MS Scientist, Kunin-Lunenfeld Appli

Re: [R] Need suggestions about GUI

2008-01-21 Thread j verzani
ronggui gmail.com> writes: > Thanks. > > gWidgets is quite good. However, I want to get the selection text chunk as > well as the index, but the index arguments does not work for gtext. > > > obj<-gtext(cont=T) > > svalue(obj,drop=T) > [1] "cde" > > svalue(obj,drop=T,index=T) > [1] "cde" >

Re: [R] Stationarity of a Time Series

2008-01-21 Thread Christofer
Dickey Fuller test -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of stephen sefick Sent: Tuesday, January 22, 2008 1:06 AM To: r-help@r-project.org Subject: [R] Stationarity of a Time Series Does anyone know of a test for stationarity of a time series, or

Re: [R] row-wise conditional update in dataframe

2008-01-21 Thread jim holtman
If you only want a subset, then use that in the function: Dataset.target <- apply(x,1,function(.row) sum(is.na(.row[3:8]))) This will put it back in column1: > x <- matrix(1,10,10) > x[sample(1:100,10)] <- NA > x[,1] <- 0 # make sure column 1 has no NAs so sums are correct > x [,1] [,2] [

Re: [R] "nonstandard" column names

2008-01-21 Thread Moshe Olshansky
Thanks to all those who responded! Now the obvious thing (putting the column name into double quotes) works for me too. But it didn't work yesterday! I have no explanation for this. Moshe. --- Moshe Olshansky <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I am sure that this question has been

Re: [R] row-wise conditional update in dataframe

2008-01-21 Thread Jon Erik Ween
Thanks Jim I see how this works. Problem is, I need to interrogate only a subset of fields. In your example, I need to put the total number of "NA" fields out of fields 3..8, excluding 1,2 9 10. Also, I don't see how the method inserts the sum into a particular field in a row. I guess you

Re: [R] row-wise conditional update in dataframe

2008-01-21 Thread jim holtman
You need to do 'is.na(x)' instead of "x == NA".. Here is a way of doing it: > x <- matrix(1,10,10) > x[sample(1:100,10)] <- NA > x [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,]111111111 1 [2,]111111 NA11

Re: [R] reordering huge data file

2008-01-21 Thread Thomas Lumley
On Mon, 21 Jan 2008, Boks, M.P.M. wrote: > > Dear R-experts, > > My problem is how to handle a 10GB data file containing genotype data. The > file is in a particular format (Illumina final report) and needs to be > altered > and merged with phenotype data for further analysis. > If the data h

Re: [R] R on a supercomputer?

2008-01-21 Thread Mark Kimpel
try Rmpi package On Jan 21, 2008 7:13 PM, markaoki <[EMAIL PROTECTED]> wrote: > hi, > Does R have any built-in capabilities that allow one to use in a > multi-node > (supercomputer) environment? > > For example, MPI'ish commands allowing me to distribute specific R code to > specific compute node

[R] row-wise conditional update in dataframe

2008-01-21 Thread Jon Erik Ween
Hi! I need to conditionally update a dataframe field based on values in other fields and can't find even how to search for this right. Sorry if this has been asked before. But, specifically, I have a 490 X 221 dataframe and need to count, by row, how many fields in Dataframe$field_a...Dataf

Re: [R] "nonstandard" column names

2008-01-21 Thread Marc Schwartz
(Ted Harding) wrote: > Are you sure the name really is "CPI/RPI"? In setting > yp my example, I read in a CSV file "temp.csv": > > A,B/C > 1,2 > 3,4 > 5,6 > > with > > D<-read.csv("temp.csv") > > and got: > >> D > A B.C > 1 1 2 > 2 3 4 > 3 5 6 > > so read.csv() had changed the name

[R] R on a supercomputer?

2008-01-21 Thread markaoki
hi, Does R have any built-in capabilities that allow one to use in a multi-node (supercomputer) environment? For example, MPI'ish commands allowing me to distribute specific R code to specific compute nodes? If not, well, I would have more programming to do. thanks for any information about this

Re: [R] "nonstandard" column names

2008-01-21 Thread Ted Harding
On 21-Jan-08 23:36:46, Moshe Olshansky wrote: > Hi everyone, > > I am sure that this question has been asked here some > time ago but I do not remember the answer and was > unable to find it in the archives... > > Below is my question: suppose that I have a data.frame > x and one of it's columns

Re: [R] "nonstandard" column names

2008-01-21 Thread Bill.Venables
Eh? I think x$"CPI/RPI" does work. See below, with two other ways. > m <- data.frame(x = 1:3, "CPI/RPI" = 4:6, check.names = FALSE) > m x CPI/RPI 1 1 4 2 2 5 3 3 6 > m$"CPI/RPI" ### works for me! [1] 4 5 6 > m[, "CPI/RPI"] [1] 4 5 6 > m[["CPI/RPI"]] [1] 4 5 6

[R] Problem with package build

2008-01-21 Thread Doran, Harold
I've been building, checking, and installing a package all day today with no errors. I have even been able to bring the package into R on my machine and use it all day doing test runs. However, now, when I run Rcmd check, I get errors. Keep in mind not one thing has changed. I haven't touched any

Re: [R] "nonstandard" column names

2008-01-21 Thread Marc Schwartz
Moshe Olshansky wrote: > Hi everyone, > > I am sure that this question has been asked here some > time ago but I do not remember the answer and was > unable to find it in the archives... > > Below is my question: suppose that I have a data.frame > x and one of it's columns name is "CPI/RPI" (with

[R] "nonstandard" column names

2008-01-21 Thread Moshe Olshansky
Hi everyone, I am sure that this question has been asked here some time ago but I do not remember the answer and was unable to find it in the archives... Below is my question: suppose that I have a data.frame x and one of it's columns name is "CPI/RPI" (without quotation marks of course). How can

Re: [R] Bugs through R in Mac

2008-01-21 Thread Bill Northcott
On 21/01/2008, at 10:00 PM, Uwe Ligges wrote: > Fredrik Lundgren wrote: >> Hello, >> >> I recently changed from Win XP to Mac OS X (10.5.1). >> Is there a way to run Bugs (in any version) in R (R version 2.6.0 >> (2007-10-03)) on this platform? >> > > Which way to "run Bugs in R" did you use in Wi

[R] moving window over a matrix.

2008-01-21 Thread Milton Cezar Ribeiro
Dear all, I have a set of matrix and I need to compute several measures on source image and to generate other matrices, in a moving window way. My input images have integer and double precision values, and also NAs. I need to compute some measures that I will define as functions (like the samp

Re: [R] reordering huge data file

2008-01-21 Thread jim holtman
It is still not clear exactly how you want to be able to do the transformation. What does "Phenotypeinfo.txt " contain and how big is it? Is sound like this has some data that you want to be able to merge into the other file. If this is just reading in Phenotypeinfo.txt, and then using that data

Re: [R] Adding an Sweave Vignette to a package

2008-01-21 Thread Doran, Harold
Jim First thanks for your patience. I use MikTex as well. I do have both (texti2dvi and pdflatex) on my local machine. I copied and pasted the code below and stepped through it. I think this break down with the following error. Indeed, I think there is a path problem. However, I don't see a res

Re: [R] Adding an Sweave Vignette to a package

2008-01-21 Thread James W. MacDonald
What TeX variant are you using? If texi2dvi() can't find texi2dvi, it tries to fall back on pdflatex which has to be in the path. I have always had good luck with MikTeX, which does have texi2dvi. You could always try library(tools) Sweave("TheVignette.Rnw") debug(texi2dvi) texi2dvi("TheVignett

[R] reordering huge data file

2008-01-21 Thread Boks, M.P.M.
Dear R-experts, My problem is how to handle a 10GB data file containing genotype data. The file is in a particular format (Illumina final report) and needs to be altered and merged with phenotype data for further analysis. PERL seems to be an frequently used solution for this type of work, how

Re: [R] Adding an Sweave Vignette to a package

2008-01-21 Thread Doran, Harold
There is now and it looks like I got through the first phase. But, now I get the error below. * DONE (MiscPsycho) * creating vignettes ... ERROR Loading required package: statmod Below is what alpha *would be* if the item were removed Error in texi2dvi(file = bft, pdf = TRUE, clean = FALSE, quiet

Re: [R] Adding an Sweave Vignette to a package

2008-01-21 Thread James W. MacDonald
Hi Harold, Doran, Harold wrote: > I'm finalizing development of a package that will include a vignette. > Without the vignette, the package builds fine with no warnings and is > ready for distribution. Now, I am following the directions for > developing vignettes "Sweave, Part II: Package Vignette

[R] Quantile normalization in MAANOVA

2008-01-21 Thread Dipen Sangurdekar
hello I am dealing with a dataset in which I wish to do both quantile and regional lowess normalization using the MAANOVA package. I looked through the documentation for MAANOVA, and it appears that there is no in-built function that does qq normalization on the data structure that is generate

[R] Adding an Sweave Vignette to a package

2008-01-21 Thread Doran, Harold
I'm finalizing development of a package that will include a vignette. Without the vignette, the package builds fine with no warnings and is ready for distribution. Now, I am following the directions for developing vignettes "Sweave, Part II: Package Vignettes" by Friedrich Leisch. I am using a win

Re: [R] Stationarity of a Time Series

2008-01-21 Thread Stefan Grosse
On Monday 21 January 2008 08:36:13 pm stephen sefick wrote: ss> Does anyone know of a test for stationarity of a time series, or like ss> all ordination techniques it is a qualitative assessment of a ss> quantitative result. Books, papers, etc. suggestions welcome. I recommend the Walter Enders A

Re: [R] list.files sorted by date

2008-01-21 Thread Henrique Dallazuanna
Perhaps: lsfiles <- file.info(dir()) lsfiles[order(lsfiles$mtime),] On 21/01/2008, Alberto Monteiro <[EMAIL PROTECTED]> wrote: > Is there any (list.files)-like function that sorts the files by > (modification) date? > > Alberto Monteiro > > __ > R-help

Re: [R] R configuration is not finding the installed f2c cross-compiler

2008-01-21 Thread Maura E Monville
Actually up to last Friday, I have run R version 2.6.0 on Linux/SuSE 10.3 with no problem. I cannot remember how I bypassed the Fortran compiler requests when I installed R 2.6.0 I am sure I never had to specify anything manually. I am not aware of Fortran compilers on Linux/SuSE installation kit

[R] list.files sorted by date

2008-01-21 Thread Alberto Monteiro
Is there any (list.files)-like function that sorts the files by (modification) date? Alberto Monteiro __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-gui

Re: [R] Stationarity of a Time Series

2008-01-21 Thread Wensui Liu
stephen, there are numerous tests. most widely used are adf test and pp test, both of which can be implemented in R. On Jan 21, 2008 2:36 PM, stephen sefick <[EMAIL PROTECTED]> wrote: > Does anyone know of a test for stationarity of a time series, or like > all ordination techniques it is a qualit

Re: [R] Stationarity of a Time Series

2008-01-21 Thread sj
kpss.test in the tsereis package should do the trick On Jan 21, 2008 12:36 PM, stephen sefick <[EMAIL PROTECTED]> wrote: > Does anyone know of a test for stationarity of a time series, or like > all ordination techniques it is a qualitative assessment of a > quantitative result. Books, papers, e

Re: [R] R configuration is not finding the installed f2c cross-compiler

2008-01-21 Thread Prof Brian Ripley
It is unlikely that f2c will work on a 64-bit platform. So you will have to specify it manually (via the script src/scripts/f77_f2c perhaps?). You would be much better off installing your OS's Fortran compiler. On Mon, 21 Jan 2008, Maura E Monville wrote: > Last Friday my computer monitor was

[R] Stationarity of a Time Series

2008-01-21 Thread stephen sefick
Does anyone know of a test for stationarity of a time series, or like all ordination techniques it is a qualitative assessment of a quantitative result. Books, papers, etc. suggestions welcome. thanks Stephen -- Let's not spend our time and resources thinking about things that are so little or

[R] R configuration is not finding the installed f2c cross-compiler

2008-01-21 Thread Maura E Monville
Last Friday my computer monitor was messed up by on-line patches update. I had to reinstall everything from the o.s. and all applications on top of it. I have downloaded R source from the official site. I have uncompressed the archive and ran the configure as root in /usr/local/bin. The configura

Re: [R] things that are difficult/impossible to do in SAS or SPSS but simple in R

2008-01-21 Thread Matthew Keller
Hello all, Thank you all very much for the many helpful suggestions. I think this discussion has been extremely informative. Rather than try to list all these examples in my talk, I sent out a link to everyone so that they could read the discussion for themselves. If you would like to access my po

Re: [R] hexadecimal to binary conversion

2008-01-21 Thread Charles C. Berry
On Mon, 21 Jan 2008, Gallego Liberman, Matias wrote: > Hi > > I am looking for a function to convert an hexadecimal base input to a > binary base output. > > May anybody help me? Here are some pieces. Roll up your own function. > hexdat <- replicate(10, paste(format.hexmode(sample(16,4)-1),colla

Re: [R] R on Linux 64-bit

2008-01-21 Thread Maura E Monville
FOr some reason the R installation is failing with the following message: "configure: error: Neither an F77 compiler nor f2c found" But I do have f2c installed on my computer: linux-Ciccia:/usr/local/bin/R-2.6.1 # which f2c /usr/bin/f2c I am installing as "root". Is this the problem ? Thank you

Re: [R] R on Linux 64-bit

2008-01-21 Thread Peter Dalgaard
Maura E Monville wrote: > I have been running R on my Linux/SuSE for over 2 months. I know it > works. > Some time ago it aborted as it ran out of memory in spite of having > 2GB RAM + swap. Someone in this forum asked me whether I had compiled > with the 64-bit libraries or the 32-bit since my com

Re: [R] Need suggestions about GUI

2008-01-21 Thread ronggui
I would like to make a small package for basic qualitative analysis (some functions are like what http://www.pressure.to/qda/ does). Basically, I read the texts into a database (using RSQLite), then fetch the texts and push it to a text widget. Next, I will do some coding. That is, select the text

Re: [R] R and samr under Linux

2008-01-21 Thread James W. MacDonald
Hi Mark, markaoki wrote: > hi, > I have determined some of my own answers, so will share here. > > There are binary associations within the R libraries specific to the > environment > that created them, be it Windows or Linux, 32 or 64 bit. I found these > associations in the > Meta directory o

Re: [R] Need suggestions about GUI

2008-01-21 Thread Greg Snow
Yes this should be possible using tcltk. Could you give a little more detail of what you are trying to do? Are you putting the text in a text widget (mini-wordproccessor type window) or an entry widget (small, 1 line of text)? The methods are a little different between them. Also, do you wan

Re: [R] R on Linux 64-bit

2008-01-21 Thread Maura E Monville
I have been running R on my Linux/SuSE for over 2 months. I know it works. Some time ago it aborted as it ran out of memory in spite of having 2GB RAM + swap. Someone in this forum asked me whether I had compiled with the 64-bit libraries or the 32-bit since my computer is a 64-bit architecture. Th

[R] hexadecimal to binary conversion

2008-01-21 Thread Gallego Liberman, Matias
Hi I am looking for a function to convert an hexadecimal base input to a binary base output. May anybody help me? Thank you [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-

Re: [R] Need suggestions about GUI

2008-01-21 Thread ronggui
Thanks. gWidgets is quite good. However, I want to get the selection text chunk as well as the index, but the index arguments does not work for gtext. > obj<-gtext(cont=T) > svalue(obj,drop=T) [1] "cde" > svalue(obj,drop=T,index=T) [1] "cde" 2008/1/21, Gabor Grothendieck <[EMAIL PROTECTED]>: >

Re: [R] image/area plot

2008-01-21 Thread Marta Rufino
Hello, Here it is a better example: http://amarsagoo.blogspot.com/2007/08/on-pie-charts-etc.html best, Marta __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/pos

Re: [R] Problems saving the workspace image

2008-01-21 Thread Gabor Grothendieck
Also Rgui.bat and RguiStart.bat at http://batchfiles.googlecode.com provide some alternate ways to start up R. For example, if Rgui.bat is placed anywhere in your path then in the Windows console: cd %homepath% Rgui will start up R in your home folder. On Jan 21, 2008 6:46 AM, Prof Brian Riple

Re: [R] image/area plot

2008-01-21 Thread Marta Rufino
Thank you very much for the help. > kk=data.frame(fact=letters[1:10], freq=c(5,1,10,2,10,7,5,10,30,20)) > res <- rep(kk[[1]], kk[[2]]) > resmat <- matrix(c(res), 10) > image(1:10, 1:10, resmat, col=rainbow(20)) > grid(ncol(resmat), nrow(resmat)) > > Great! that is much better :-) Still,... any

Re: [R] Problems saving the workspace image

2008-01-21 Thread Prof Brian Ripley
On Mon, 21 Jan 2008, Erin Hodgess wrote: In Windows Vista, you have to "run as administrator". Please don't: the point of not running as administrator is to protect you and your OS from rogue processes. *If* you use a starting directory you own, there is no problem on Vista (for me, or many

Re: [R] Help with coxph object

2008-01-21 Thread David Hajage
hello, it is in the summary.coxph object : > names(summary(yourcoxobject)) You can see '$coef' > summary(yourcoxobject)$coef[,5] 2008/1/21, Eleni Christodoulou <[EMAIL PROTECTED]>: > > Hello R community! > > I am trying to apply the cox model and thus I am creating a coxph object. > I > would l

Re: [R] Problems saving the workspace image

2008-01-21 Thread Erin Hodgess
In Windows Vista, you have to "run as administrator". I ran into the same thing myself. Hope this helps! Sincerely, Erin On Jan 21, 2008 5:46 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Mon, 21 Jan 2008, Ana Azevedo wrote: > > > Hi! > > > > I use R with Windows for a long time. In the

Re: [R] Reading Genepop files

2008-01-21 Thread Henrique Dallazuanna
Perhaps: http://finzi.psych.upenn.edu/R/library/ARES/html/read.genepop.html On 21/01/2008, H. Skaug <[EMAIL PROTECTED]> wrote: > Dear list, > > Does there exist R routines for reading output files from Genepop? > > (GENEPOP is a population genetics software package by Raymond & Rousset; > http://

[R] Help with coxph object

2008-01-21 Thread Eleni Christodoulou
Hello R community! I am trying to apply the cox model and thus I am creating a coxph object. I would like to retrieve the p-values from this and keep them separately in another vector. I can see them when I give a command for the result to appear. However, the p values are not in the list of value

[R] Font analysis?

2008-01-21 Thread Mike Lawrence
Hi all, My initial searches on this yielded bupkis; I'm looking to access the pixel-by-pixel data (preferably as a matrix, 0 for black, 1 for white) of rendered letters(given a specific font, size, and dpi. Any suggestions as to how to achieve this? Mike -- Mike Lawrence Graduate Student,

[R] linear constraints---absolute value

2008-01-21 Thread livia
Hello, I would like to optimize the function "fqp" as following: a= c(0.2,0.3,0.4) vcov=matrix(c(1,2,3,4,5,6,7,8,9),3,3) fqp <- function(b) {t(b)%*%a-0.5*((t(b)%*%vcov)%*%b)} I want the linear constraint to be something like abs(b1)+ abs(b2)+abs(b3) = 1.5. I found it diffcult to use "constr

Re: [R] R on Linux 64-bit

2008-01-21 Thread Peter Dalgaard
Maura E Monville wrote: > I am downloading the latest R source code R-2.6.1.tar.gz > > I am installing ion a 64-bit machine. > Is the configuration script the proper one for 64-bin installation ? I > mean the compiler and > linker options ..? > > Thanks you, > Maura > > The short answer is ye

Re: [R] OT: single measure of (group) correlation with more than two vectors?

2008-01-21 Thread John Kane
What you may want is a measure of inter-rater reliablity though what you are discussing is not the way it is normally used. Try googling "inter-rater reliability" or have a look at a text book like Introduction to classical and modern test theory Linda Crocker and James Algina. New York : Holt

[R] Reading Genepop files

2008-01-21 Thread H. Skaug
Dear list, Does there exist R routines for reading output files from Genepop? (GENEPOP is a population genetics software package by Raymond & Rousset; http://genepop.curtin.edu.au/ ) I find several R packages that contain function for writing Genepop input files, but non that does the reverse.

[R] New: R packages for Ubuntu amd64

2008-01-21 Thread Vincent Goulet
Ubuntu users on the amd64 platform will be pleased to know that up-to- date binary R packages are now available from CRAN. Following the policy for the i386 architecture, the supported Ubuntu releases are the latest two Ubuntu releases and the latest LTS release. Currently, these are Gutsy

Re: [R] summary of categorical variables

2008-01-21 Thread John Kane
Will not just apply(mydf, 2 table) give you what you want in a list format? --- [EMAIL PROTECTED] wrote: > Dear list, > > I have a data.frame with nine categorical variables > (0,1,2 and NAs) > that I would like to get the number of events for > each of them. I can > extract this using summa

Re: [R] summary of categorical variables

2008-01-21 Thread Chuck Cleland
On 1/21/2008 8:08 AM, [EMAIL PROTECTED] wrote: > Dear list, > > I have a data.frame with nine categorical variables (0,1,2 and NAs) > that I would like to get the number of events for each of them. I can > extract this using summary() for each variable at a time with the > as.factor()argument (

[R] Obtaining Midas and splice index values in onechannelGUI

2008-01-21 Thread Schraga Schwartz
Hello, I've meanwhile got onechannelGUI running (my OS is windows). I'm trying to use it for the analysis of human exon arrays. I was able to load cel files and run them through affymetrix power tools, to obtain normalized affy data. My next step was trying to find differentially spliced exons.

[R] summary of categorical variables

2008-01-21 Thread darteta001
Dear list, I have a data.frame with nine categorical variables (0,1,2 and NAs) that I would like to get the number of events for each of them. I can extract this using summary() for each variable at a time with the as.factor()argument (otherwise it will get me the mean value): >summary(as.fact

[R] R on Linux 64-bit

2008-01-21 Thread Maura E Monville
I am downloading the latest R source code R-2.6.1.tar.gz I am installing ion a 64-bit machine. Is the configuration script the proper one for 64-bin installation ? I mean the compiler and linker options ..? Thanks you, Maura -- Maura E.M [[alternative HTML version deleted]] ___

Re: [R] Problems saving the workspace image

2008-01-21 Thread Prof Brian Ripley
On Mon, 21 Jan 2008, Ana Azevedo wrote: Hi! I use R with Windows for a long time. In the last week I change to Windows Vista. Now I can´t save the workspace image when I exit R. The system presents the following message “Unable to open .Rhistory”. Does anyone can help me? Did you change the s

Re: [R] sorting in 'merge'

2008-01-21 Thread Peter Dalgaard
jiho wrote: > [...snip...] > the result is still somehow sorted according to the order of b. I > would have expected the output to be: > > merge(b,a,sort=F) >field1 field2 var2 var1 > 1 2 1 0.2739025 0.5134574 > 2 2 2 0.5147113 0.8063110 > 3 1 2 0

Re: [R] subsetting a data frame using string matching

2008-01-21 Thread Richard . Cotton
> a = c("Alpha", "Beta", "Gamma", "Beeta", "Alpha", "beta") > b = c(1:6) > example = data.frame("Title" = a, "Vals" = b) > > > > example > Title Vals > 1 Alpha1 > 2 Beta2 > 3 Gamma3 > 4 Beeta4 > 5 Alpha5 > 6 beta6 > > > > I would like to be able to get a new data fra

[R] Problems saving the workspace image

2008-01-21 Thread Ana Azevedo
Hi! I use R with Windows for a long time. In the last week I change to Windows Vista. Now I can´t save the workspace image when I exit R. The system presents the following message “Unable to open .Rhistory”. Does anyone can help me? I thank you in advance, Ana [[alternative HTML ver

Re: [R] subsetting a data frame using string matching

2008-01-21 Thread Chuck Cleland
On 1/21/2008 5:18 AM, Karin Lagesen wrote: > Example data frame: > > > a = c("Alpha", "Beta", "Gamma", "Beeta", "Alpha", "beta") > b = c(1:6) > example = data.frame("Title" = a, "Vals" = b) > > >> example > Title Vals > 1 Alpha1 > 2 Beta2 > 3 Gamma3 > 4 Beeta4 > 5 Alpha5

Re: [R] Efficient way for multiplying vectors with a only certain number of rows in a matrix

2008-01-21 Thread Ralph79
Thanks, Henrique! Your approach definitely works and gives the result that I need, but the calculations takes quite a while. As this problem itself is part of loop (Markov Chain), I am still looking for faster and truely vectorized solutions, maybe after a re-organisation of the data matrices? I

[R] [R-pkgs] Package surveillance (v0.9-8) on CRAN

2008-01-21 Thread Michael Höhle
Dear R Community, I would like to announce the package "surveillance", which provides methods for the surveillance of count data time series originating from the routine collection of public health data. The package addresses epidemiologists and statisticians working with routine surveillance, bu

[R] [R-pkgs] New package: R to LaTeX Univariate Analyses

2008-01-21 Thread Christophe Genolini
Hi the list *** New package *** R to LaTeX : Univariate analyses r2lUniv *URL:*http://www.r-project.org, http://christophe.genolini.free.fr/r2lUniv *** Description *** r2lUniv performs some basic analyses, then generates a code to be included in a LaTeX document to print the analyses in a (so ni

[R] sorting in 'merge'

2008-01-21 Thread jiho
Hello everyone, I've been advised to use merge to extract information from two data.frames with a number of common columns, but I cannot get a grasp on how it sorts the result. With sort=FALSE, I would expect it to give the result back sorted exactly as the input was but it seems it is not

[R] constrOptim for quadratic constraints?

2008-01-21 Thread Shubha Vishwanath Karanth
Hi, Can I use "constrOptim" for quadratic constraints? If not, which optimizer can I go for? BR, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:13}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailma

[R] subsetting a data frame using string matching

2008-01-21 Thread Karin Lagesen
Example data frame: a = c("Alpha", "Beta", "Gamma", "Beeta", "Alpha", "beta") b = c(1:6) example = data.frame("Title" = a, "Vals" = b) > example Title Vals 1 Alpha1 2 Beta2 3 Gamma3 4 Beeta4 5 Alpha5 6 beta6 > I would like to be able to get a new data frame from

Re: [R] Need suggestions about GUI

2008-01-21 Thread Gabor Grothendieck
You can find examples of using tcltk here: http://www.sciviews.org/_rgui/tcltk/ Also the gwidgets package is a toolkit independent layer that can run on top of tcltk or RGtk and it is described with many examples here: http://wiener.math.csi.cuny.edu/pmg/gWidgets On Jan 21, 2008 4:02 AM, ronggu

Re: [R] gzfile

2008-01-21 Thread Uwe Ligges
You probably do not have write permission in your current working directory. Uwe Ligges amna khan wrote: > Dear Sir > When I close the R console I face the following problem continuously > > Error in gzfile(file, "wb") : unable to open connection > In addition: Warning message: > In gzfile(fil

[R] gzfile

2008-01-21 Thread amna khan
Dear Sir When I close the R console I face the following problem continuously Error in gzfile(file, "wb") : unable to open connection In addition: Warning message: In gzfile(file, "wb") : cannot open compressed file '.RDataTmp' Help is required in this regard. -- AMINA SHAHZADI Department of Stat

[R] Need suggestions about GUI

2008-01-21 Thread ronggui
What I want to do is: 1, creat a text box, insert text into that box. 2, select chunk of of the text by mouse, and link it to a lable. so I would like a way to get that chunk of text. Can I do such job with tcltk? Any relavant tutorial materials? Thanks -- HUANG Ronggui Bachelor of Social Wor

Re: [R] ESS (was "changing color scheme in R in UNIX")

2008-01-21 Thread Martin Maechler
> "ChuckB" == Charles C Berry <[EMAIL PROTECTED]> > on Sun, 20 Jan 2008 20:07:05 -0800 writes: ChuckB> On Sun, 20 Jan 2008, Andrew Yee wrote: >> Hi, I've been using R in Windows but am now starting to >> use it more often in the UNIX environment. In Windows, >> I'm use