[R] Annotation database

2009-08-28 Thread Sukhbir Rattan
Hi, I have 15 CEL files of Affymetrix platform from GEO. Title of experiment is : Ecoli_ASv2 Affymetrix E. coli Antisense Genome Array. I am looking for the package available in R for this array for annotation. I have already tried doing annotation from packages like org.EcK12.eg.db but I don'

Re: [R] unix like commands in R?

2009-08-28 Thread zrl
Thank you Ted. I did try page(file,method="print"), it did behave as "less". I will try the code to modify the profile as well to see how it goes. Thank you very much. On Mon, Aug 24, 2009 at 5:32 PM, Ted Harding wrote: > On 24-Aug-09 21:56:06, zrl wrote: > > Dear List: > > I am trying to find a

Re: [R] how to explain the interaction terms regarding "treatmentcontrast" of lm model

2009-08-28 Thread zrl
Thank you all for your help. Daniel, I want to know if I really understand your answer. I calculated each group mean and sub mean as below: > tapply(val,group,mean) group1 group2 group3 4.215670 5.664411 7.210819 > tapply(val,sub,mean) abcd 4.856927 5.199305

Re: [R] how to generate a random correlation matrix with restrictions

2009-08-28 Thread Ravi Varadhan
Hi Kingsford, There is more structure to a correlation matrix than that meets the eye! Your method will produce a matrix R that looks "like" a correlation matrix, but beware - it is an impostor! You can obtain a valid correlation matrix, Q, from the impostor R by using the `nearPD' function i

Re: [R] how to generate a random correlation matrix with restrictions

2009-08-28 Thread Kingsford Jones
Ahh -- Mark Leeds just pointed out off-list that it was supposed to be a correlation matrix. Perhaps R <- matrix(runif(1), ncol=100) R <- (R * lower.tri(R)) + t(R * lower.tri(R)) diag(R) <- 1 These are of course uniformly distributed positive correlations. Kingsford On Fri, Aug 28, 2009 a

[R] Rcmdr installalation under Viata gives a warning. Do I need to do anything?

2009-08-28 Thread John Sorkin
Windows Vista R 2.9.1 When trying to install Rcmdr I get the message shown below. What does it mean, do I need to do anything? The downloaded packages are in C:\Users\John Sorkin\AppData\Local\Temp\RtmpRCLbhe\downloaded_packages updating HTML package descriptions Warning message: In file

Re: [R] how to generate a random correlation matrix with restrictions

2009-08-28 Thread Kingsford Jones
R <- matrix(runif(1), ncol=100) hth, Kingsford Jones On Fri, Aug 28, 2009 at 7:26 PM, Ning Ma wrote: > Hi, > > How can I generate a random 100x100 correlation matrix, R={r_ij}, > where about 10% of r_ij are greater than 0.9 > > Thanks in advance. > >

[R] how to generate a random correlation matrix with restrictions

2009-08-28 Thread Ning Ma
Hi, How can I generate a random 100x100 correlation matrix, R={r_ij}, where about 10% of r_ij are greater than 0.9 Thanks in advance. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide htt

Re: [R] how to explain the interaction terms regarding "treatmentcontrast" of lm model

2009-08-28 Thread Daniel Malter
The intercept is group=1, sub=a, The interaction between sub=b and group=2 implies that both sub=b and group=2 direct effects are included. That is, with the direct effects only you are now at: intercept+group2+subb, which means the intercept (group1 and sub=a) + the average difference between gro

Re: [R] adding factor scores back to an incomplete dataset...

2009-08-28 Thread David G. Tully
Thanks, Prof Spector. Your first solution works well for me. Phil Spector wrote: David - Here's the easiest way I've been able to come up with. I'll provide some sample data to make things clearer (hint, hint): dat = data.frame(matrix(rnorm(100),20,5)) dat[3,4] = NA dat[12,3] = NA scrs =

Re: [R] Plotmath, sweave and lattice graphics interaction problem

2009-08-28 Thread Duncan Mackay
Hi Gavin I am running on windows and have no problem R version 2.9.2 (2009-08-24) i386-pc-mingw32 locale: LC_COLLATE=English_Australia.1252;LC_CTYPE=English_Australia.1252;LC_MONETARY=English_Australia.1252;LC_NUMERIC=C;LC_TIME=English_Australia.1252 attached base packages: [1] datasets utils

[R] how to explain the interaction terms regarding "treatment contrast" of lm model

2009-08-28 Thread zrl
Dear list, I am confused on how to explain the interaction term in the context of "treatment contrast". for example, I have an data frame as below: sub group val 1a group1 3.685625 2a group1 3.407445 3a group1 4.040920 4a group1 2.890875 5b group1 3.853280 6b group1

Re: [R] how to set crontab for updating the repositories?

2009-08-28 Thread Patrick Aboyoun
Sukhbir, The recommended rsync commands for mirroring the Bioconductor repositories are given at http://bioconductor.org/download/mirrors/mirror-howto.html Cheers, Patrick Paul Hiemstra wrote: Sukhbir Rattan wrote: Hi, I have downloaded around 60GB package repositories of bioconductor t

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
Dumblauskas, Jerry credit-suisse.com> writes: > > OK > > Is your PostGres server on the same Linux box you are running R on? > Sample values > Server = 169.49.30.69 (localhost host means you are on the same > box) yes, all is local here. > Port= 2700 (make sure your port

Re: [R] CHAID in R

2009-08-28 Thread Wensui Liu
i couldn't find it on CRAN. On Fri, Aug 28, 2009 at 5:16 PM, Max Kuhn wrote: > > well, are you sure if party() can implement chaid? > > i doubt if chaid is being implemented in any R package. > > https://r-forge.r-project.org/projects/chaid/ > > > -- > > Max > --

Re: [R] std.error

2009-08-28 Thread David Winsemius
On Aug 28, 2009, at 2:50 PM, Mcdonald, Grant wrote: dear sir, i am trying to calculate the standard error of my data (x), The term standard error is generally applied to a parameter estimate such as a regression coefficient. You may be looking for the function to retrun the standard devi

Re: [R] problem plotting with ggplot2

2009-08-28 Thread ONKELINX, Thierry
Remove the y=c2 from your histogram plot. ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, metho

Re: [R] CHAID in R

2009-08-28 Thread Max Kuhn
> well, are you sure if party() can implement chaid? > i doubt if chaid is being implemented in any R package. https://r-forge.r-project.org/projects/chaid/ -- Max __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] CHAID in R

2009-08-28 Thread Wensui Liu
well, are you sure if party() can implement chaid? i doubt if chaid is being implemented in any R package. On Fri, Aug 28, 2009 at 7:50 AM, Arup wrote: > > Hi..I am trying to run CHAID in R..I have installed the sofyware Party and > trying to use the function ctree() to carry out the analysis. b

Re: [R] Google's R Style Guide

2009-08-28 Thread Kingsford Jones
A few thoughts: -- As for naming preferences, in an interactive R session or answering an R-help question I'm glad I can type lm(log(y) ~ atan(x)) rather than FitLinearModel(CalculateNaturalLogarithm(y) ~ CalculateInverseTangent(x)) -- For consistency, their function makeColName(...) should be

[R] std.error

2009-08-28 Thread Mcdonald, Grant
dear sir, i am trying to calculate the standard error of my data (x), i have tried se(x, na.rm=TRUE) and std.error(x) neither have worked and i cannot find an alternative sorry to bother with such a basic problem __ R-help@r-project.org mailing list

[R] Calling C funtion from R help Needed

2009-08-28 Thread naresh4836
Hello Forum, I'm calling C function from R.It is a small sample trial program. The C function will accept a character and a integer and print them. It is printing some special character instead of input character. Below are the C function, Wrapper code ,R code and R output. Please help me in thi

[R] sub using info from pattern in 2nd col into part of pattern in 1st column?

2009-08-28 Thread Chuck Carey
I have two data.frame columns and I want to replace part of the first column with the second column : temp<-data.frame(matrix(c("54E5","7","56D7","E3","56F12","14","56F3","10","57C5",NA,"59A1","3"), ncol = 2)) if the 2nd column consists entirely of digits (1 or 2 digits) I want to replace th

Re: [R] extracting pvalues from ttest

2009-08-28 Thread Jun Shen
I never used "by". Is "B" a list? If not, I am not sure if lapply can take it. Try aggregate(). On Fri, Aug 28, 2009 at 10:53 AM, 1Rnwb wrote: > > Hello list, > > I have a similar issue as this post > http://tolstoy.newcastle.edu.au/R/e6/help/09/04/11438.html#options2 and I > used the suggestion

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Dumblauskas, Jerry
OK Is your PostGres server on the same Linux box you are running R on? Sample values Server = 169.49.30.69 (localhost host means you are on the same box) Port= 2700 (make sure your port is correct) Also, I am not seeing your id and password I use the signature CONNREAD

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
... I also tried this one: r...@siouxsie:~# odbcinst -q -d odbcinst: SQLGetPrivateProfileString failed with . r...@siouxsie:~# "failed with ." ... what a verbose and detailed error message :-( Oliver __ R-help@r-project.org mailing list https:

[R] Pls package

2009-08-28 Thread Payam Minoofar
Hi, I have managed to format my data into a single datframe consisting of two AsIs response and predictor dataframes in order to supply the plsr command of the pls package for principal components analysis. When I execute the command, however, I get this error: > fiber1 <- plsr(respmat ~ predma

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
Hi, in /usr/share/doc/r-cran-rodbc/README.gz I found this example: == [testpg] Description = testpg Driver = PostgreSQL Trace = No TraceFile = ServerName = localhost UserName= ripley Port= 5432 Socket = Database=

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Dumblauskas, Jerry
So now R can see your odbc ini file -- but at runtime you are still having issues... So it should either be: 1) you have a path not set (for the oracle example below I use LD_LIBRARY_PATH -- not sure about PostGres) 2) your ODBC.ini file doesn't have a line like Driver = /some_random_path/instantc

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
Dumblauskas, Jerry credit-suisse.com> writes: > > Looks like Unix ...well, near by: Linux. > > If so, make sure your script has the proper paths set > > Here is my set up for an oracle DB > > export LD_LIBRARY_PATH=/../../instantclient_11_1:/../../unixODBC64_1/lib > export ODBCINI=/..

[R] extracting pvalues from ttest

2009-08-28 Thread 1Rnwb
Hello list, I have a similar issue as this post http://tolstoy.newcastle.edu.au/R/e6/help/09/04/11438.html#options2 and I used the suggestion provided by Jorge with modifications to my data do.call(c,lapply(your_list_with_the_t_tests,function(x) x$p.value)) but I am getting the following error

Re: [R] Google's R Style Guide

2009-08-28 Thread Duncan Murdoch
On 8/28/2009 1:02 PM, Kevin Wright wrote: On Fri, Aug 28, 2009 at 11:49 AM, Duncan Murdoch > wrote: On 8/28/2009 12:33 PM, Kevin Wright wrote: On Fri, Aug 28, 2009 at 11:10 AM, Henrik Bengtsson mailto:h...@stat.berkeley.edu>>wrote: Q

Re: [R] Google's R Style Guide

2009-08-28 Thread Deepayan Sarkar
On Fri, Aug 28, 2009 at 10:02 AM, Kevin Wright wrote: > On Fri, Aug 28, 2009 at 11:49 AM, Duncan Murdoch wrote: > >> On 8/28/2009 12:33 PM, Kevin Wright wrote: [...] >> Now that doesn't sound like the browser.  Whatever debugger you are using >> has a bug. >> >> Duncan Murdoch >> >> > Ah, right y

Re: [R] Google's R Style Guide

2009-08-28 Thread Barry Rowlingson
On Fri, Aug 28, 2009 at 5:11 PM, hadley wickham wrote: > In my view, that's the purpose of indenting - you see scope from > indenting. *cough* python *cough* Barry __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

Re: [R] Transform data for repeated measures

2009-08-28 Thread hadley wickham
On Thu, Aug 27, 2009 at 6:37 PM, Richardson, Patrick wrote: > I have a dataset that I'm trying to rearrange for a repeated measures > analysis: > > It looks like: > > patient basefev1 fev11h fev12h fev13h fev14h fev15h fev16h fev17h fev18h drug > 201     2.46   2.68   2.76   2.50   2.30   2.14   2

Re: [R] new data.frame summed by date

2009-08-28 Thread David Winsemius
The request for a date column results in a bit of redundancy beyond what tapply would have produced, but here it is as specified: > data.frame(dnames=names(tapply(X$PL_Pos, X$MyDate, sum)), dsums = tapply(X$PL_Pos, X$MyDate, sum) ) dnames dsums 2009-08-03 2009-08-03 174 2009

Re: [R] new data.frame summed by date

2009-08-28 Thread milton ruser
Puting my 2cents: newDF<-data.frame(aggregate(X$PL_Pos, list(X$MyDate), sum)) colnames(newDF)<-c("MyDate","PL_Pos_SUM") good luck milton On Fri, Aug 28, 2009 at 1:03 PM, jim holtman wrote: > Is this what you want: > > > aggregate(X$PL_Pos, list(X$MyDate), sum) > Group.1x > 1 2009-08-0

Re: [R] Google's R Style Guide

2009-08-28 Thread Henrik Bengtsson
On Fri, Aug 28, 2009 at 9:10 AM, Henrik Bengtsson wrote: > Quite a while ago I put up "R Coding Conventions (RCC) - a draft", now at: > >  http://docs.google.com/View?id=dddzqd53_2646dcw759cb Google Docs seems to have a hiccup when it comes to publishing/sharing docs; here is a PDF until they've f

[R] Plotmath, sweave and lattice graphics interaction problem

2009-08-28 Thread Gavin Simpson
Dear List, I have hit this problem with using a plotmath expression in an axis label on a lattice plot I'm including in a Sweave document. The actual document is far too long and boring (unless you are interested in the hydrochemistry of upland lakes) to include here, but the following minimal exa

Re: [R] new data.frame summed by date

2009-08-28 Thread Mark Knecht
Jim, It looks exactly like what I wanted. Thanks! - Mark On Fri, Aug 28, 2009 at 10:03 AM, jim holtman wrote: > Is this what you want: > >> aggregate(X$PL_Pos, list(X$MyDate), sum) >      Group.1    x > 1  2009-08-03  174 > 2  2009-08-04  -26 > 3  2009-08-05  614 > 4  2009-08-06  318 > 5  2009

Re: [R] new data.frame summed by date

2009-08-28 Thread jim holtman
Is this what you want: > aggregate(X$PL_Pos, list(X$MyDate), sum) Group.1x 1 2009-08-03 174 2 2009-08-04 -26 3 2009-08-05 614 4 2009-08-06 318 5 2009-08-10 414 6 2009-08-11 -626 7 2009-08-12 544 8 2009-08-13 -106 9 2009-08-17 -146 10 2009-08-19 1004 11 2009-08-20 568 12 2

Re: [R] Google's R Style Guide

2009-08-28 Thread Kevin Wright
On Fri, Aug 28, 2009 at 11:49 AM, Duncan Murdoch wrote: > On 8/28/2009 12:33 PM, Kevin Wright wrote: > >> On Fri, Aug 28, 2009 at 11:10 AM, Henrik Bengtsson > >wrote: >> >> Quite a while ago I put up "R Coding Conventions (RCC) - a draft", now >>> at: >>> >>> http://docs.google.com/View?id=dddzq

Re: [R] How to convert a string passed as an argument to a vector?

2009-08-28 Thread jim holtman
If you have it as a character string, then you have to evaluate it: > x <- '1:3' > x + 10 Error in x + 10 : non-numeric argument to binary operator No suitable frames for recover() > eval(parse(text=x))+10 [1] 11 12 13 > On Fri, Aug 28, 2009 at 11:04 AM, Peng Yu wrote: > Hi, > > $ cat commandArg

Re: [R] Google's R Style Guide

2009-08-28 Thread Duncan Murdoch
On 8/28/2009 12:33 PM, Kevin Wright wrote: On Fri, Aug 28, 2009 at 11:10 AM, Henrik Bengtsson wrote: Quite a while ago I put up "R Coding Conventions (RCC) - a draft", now at: http://docs.google.com/View?id=dddzqd53_2646dcw759cb It's useful for beginners and those coding "randomly". Like i

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Dumblauskas, Jerry
Looks like Unix If so, make sure your script has the proper paths set Here is my set up for an oracle DB export LD_LIBRARY_PATH=/../../instantclient_11_1:/../../unixODBC64_1/lib export ODBCINI=/../..//unixODBC64_1 export ODBCSYSINI=/../..//unixODBC64_1 And of course you need your db define

Re: [R] Google's R Style Guide

2009-08-28 Thread Erich Neuwirth
But if the closing curly brace marks the end of the if part of an if else statement, the else keyword has to be on the same line as the closing brace. The code will not work if the else is on the next line AFAIK. On Aug 28, 2009, at 6:11 PM, hadley wickham wrote: An opening curly brace should

[R] new data.frame summed by date

2009-08-28 Thread Mark Knecht
Hi, I wonder if someone can suggest how to create a new data.frame Y from X where X$PL_Pos is summed by each unique X$MyDate. Y should end up with two (or more) columns Y$MyDate and Y$PL_Sum with its value being the cumsum of all the values in X for that date. - a 'daily cumsum'. Thanks, Mark

Re: [R] Google's R Style Guide

2009-08-28 Thread Kevin Wright
On Fri, Aug 28, 2009 at 11:10 AM, Henrik Bengtsson wrote: > Quite a while ago I put up "R Coding Conventions (RCC) - a draft", now at: > > http://docs.google.com/View?id=dddzqd53_2646dcw759cb > > It's useful for beginners and those coding "randomly". Like it or not. > > It's ok to try to persua

Re: [R] Transform data for repeated measures

2009-08-28 Thread Henrique Dallazuanna
Using reshape you can try this: reshape(resp.df, direction = "long", idvar="patient", varying = list(grep("fev", names(resp.df On Thu, Aug 27, 2009 at 8:37 PM, Richardson, Patrick < patrick.richard...@vai.org> wrote: > I have a dataset that I'm trying to rearrange for a repeated measures > a

Re: [R] Google's R Style Guide

2009-08-28 Thread hadley wickham
> An opening curly brace should never go on its own line and should always be > followed by a new line; a closing curly brace should always go on its own > line. > > It seems to me that the opening an dosing curly brace should go on their own > lines to allow the reader to immediately know what

Re: [R] Google's R Style Guide

2009-08-28 Thread hadley wickham
> It's ok to try to persuade people coding randomly, but otherwise it is > waste of time to get into arguing over if-else or bracketing - we all > have our own favorite. I totally agree. The main purpose of my style guide is so that my students write code that I can easily read, understand and gr

Re: [R] Google's R Style Guide

2009-08-28 Thread Henrik Bengtsson
Quite a while ago I put up "R Coding Conventions (RCC) - a draft", now at: http://docs.google.com/View?id=dddzqd53_2646dcw759cb It's useful for beginners and those coding "randomly". Like it or not. It's ok to try to persuade people coding randomly, but otherwise it is waste of time to get in

Re: [R] Google's R Style Guide

2009-08-28 Thread hadley wickham
> In the spirit of "less is more", I find the underscores to be distracting > and unneeded typing.  Just simplify to camel caps. This is just personal style. If you right your own style guide you can change it ;) Hadley -- http://had.co.nz/ __ R-hel

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
Oliver Bandel first.in-berlin.de> writes: > odbcDataSources() named character(0) > This looks like nothing is available via RODBC interface. Any idea what's missing? How can I get all names of available drivers? Ciao, Oliver __ R-help@r-project.

Re: [R] Help with glmer {lme4) function: how to return F or tstatistics instead of z statistics.

2009-08-28 Thread Bert Gunter
R-help is for help on the use of R, not primarily for statistics advice (although this does sometimes occur). Most of your questions are about statistics, so you should probably consult a local statistician for help or post on a more suitable list, perhaps R-sig-mixed-models: https://stat.ethz.ch

[R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
Hello, I want to try to connect R to PostgreSQL. I have found that there are three ways: DBI or RODBC or RPostgreSQL. I tried around with DBI and RODBC but didn't get it running. In both cases I'm not clear about how to set the driver/data source. I get this error: x > channel <- odbcConne

Re: [R] problem plotting with ggplot2

2009-08-28 Thread Gabor Grothendieck
Try removing various lines from your Rprofile.site file found in \Program Files\R\R-2.9.1\etc.Rprofile.site or other startup file; see ?Startup from within R. On Fri, Aug 28, 2009 at 10:57 AM, romunov wrote: > Hello Gabor, > > your suggestion running R in vanilla mode was fruitful. I can plot at l

Re: [R] Transform data for repeated measures

2009-08-28 Thread David Winsemius
Patrick; You got two helpful suggestions for where to start your learning how to reshape your data. I am going to admit that I have recurring difficulty using either reshape() or the functions in the reshape package. It undoubtedly reflects some sort of "constricted abstraction capability

Re: [R] RPostgreSQL libpq problem

2009-08-28 Thread Bunny, lautloscrew.com
Phil, thx a lot for your suggestions.. Luckily I was just able to find a solution. I just recompiled everything, deleting my manually set vars PG_INCDIR and PG_LIBDIR and setting PG_CONFIG=/opt/local/lib/postgresql83/bin/pg_config in line 2564 of the configure file then starting the insta

Re: [R] Google's R Style Guide

2009-08-28 Thread Kevin Wright
On Fri, Aug 28, 2009 at 9:41 AM, hadley wickham wrote: > > Perhaps most of you have already seen this? > > > > http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html > > > > Comments/Critiques? > > I made my own version that reflects my personal biases: > http://had.co.nz/stat405/

[R] How to convert a string passed as an argument to a vector?

2009-08-28 Thread Peng Yu
Hi, $ cat commandArgs.R args=commandArgs(trailingOnly=TRUE) args[1]+10 I have the above code. But the following command line gives me an error. I am wondering what is the correct way to convert a string to a vector? $ Rscript commandArgs.R 1:3 > args=commandArgs(trailingOnly=TRUE) > args[1]+10 E

Re: [R] Google's R Style Guide

2009-08-28 Thread hadley wickham
>> I made my own version that reflects my personal biases: >> http://had.co.nz/stat405/resources/r-style-guide.html > > I see you repeated (or independently invented?) the bad rule about closing > braces.  They should usually go on their own line, but not when followed by > an else clause. That wa

Re: [R] Google's R Style Guide

2009-08-28 Thread John Sorkin
I am troubled by the curly brace "rule": An opening curly brace should never go on its own line and should always be followed by a new line; a closing curly brace should always go on its own line. It seems to me that the opening an dosing curly brace should go on their own lines to allow the re

[R] How to source a script with command line option?

2009-08-28 Thread Peng Yu
Hi, Suppose that I have the following script. $ cat commandArgs.R args=commandArgs(trailingOnly=TRUE) args[1] I can supply command line options $ Rscript commandArgs.R a > args=commandArgs(trailingOnly=TRUE) > args[1] [1] "a" > I am wondering how to supply the command line arguments when I sou

Re: [R] Google's R Style Guide

2009-08-28 Thread Barry Rowlingson
On Fri, Aug 28, 2009 at 3:53 PM, Duncan Murdoch wrote: > On 8/28/2009 10:41 AM, hadley wickham wrote: >>> >>> Perhaps most of you have already seen this? >>> >>>  http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html >>> >>> Comments/Critiques? >> >> I made my own version that refle

Re: [R] problem plotting with ggplot2

2009-08-28 Thread romunov
Hello Gabor, your suggestion running R in vanilla mode was fruitful. I can plot at least bars. How would you proceed. How can I root out "bad" package or whatever is causing this? Cheers, Roman On Fri, Aug 28, 2009 at 4:48 PM, Gabor Grothendieck wrote: > A few things to try. > > Try starting

Re: [R] Google's R Style Guide

2009-08-28 Thread Duncan Murdoch
On 8/28/2009 10:41 AM, hadley wickham wrote: Perhaps most of you have already seen this? http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html Comments/Critiques? I made my own version that reflects my personal biases: http://had.co.nz/stat405/resources/r-style-guide.html I

Re: [R] How to generate mean anova value row in anova table, instead of individual value for each predictor

2009-08-28 Thread milton ruser
Hi Moumita, Could you send a "minimum reproducible code" as suggested on posting guide?! bests milton On Fri, Aug 28, 2009 at 8:08 AM, Moumita Das wrote: > Hi All , > Can anybody tell me if there's any way to get the summarized anova > values.Now i will explain what i mean , when i say "*summa

Re: [R] problem plotting with ggplot2

2009-08-28 Thread Gabor Grothendieck
A few things to try. Try starting R using the --vanilla flag. From the Windows command line: rem change next line appropriately if needed cd \Program Files\R\R-2.9.1\bin Rgui --vanilla and see if it still happens.If that does not help try reinstalling R and all packages. On Fri, Aug 28, 2

Re: [R] Google's R Style Guide

2009-08-28 Thread hadley wickham
> Perhaps most of you have already seen this? > >  http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html > > Comments/Critiques? I made my own version that reflects my personal biases: http://had.co.nz/stat405/resources/r-style-guide.html Hadley -- http://had.co.nz/ ___

Re: [R] Google's R Style Guide

2009-08-28 Thread Kevin Wright
On Fri, Aug 28, 2009 at 8:22 AM, Ted Harding wrote: > On 28-Aug-09 12:59:24, Esmail wrote: > > Perhaps most of you have already seen this? > > > > http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html > > > > Comments/Critiques? > > > > Thanks, > > Esmail > > > > ps: Reminds me of

[R] Question: how to index (subset) a data frame without memory overhead

2009-08-28 Thread Piotr Chmielowski
1. Suppose one has a big data frame (say, m such that dim(m)=c(8610, 3521) ) If only a subset of m, say m[1:8600, ] is now needed, how to select it without creating large memory overhead? A natural solution, m <- m[1:8600,], seems to use in addition to memory needed to hold m roughly 2 times mor

Re: [R] Google's R Style Guide

2009-08-28 Thread Thomas . Adams
Esmail, Very nice; thanks! Tom - Original Message - From: Esmail Date: Friday, August 28, 2009 8:59 am Subject: [R] Google's R Style Guide > Perhaps most of you have already seen this? > > http://google-styleguide.googlecode.com/svn/trunk/google-r- > style.html > Comments/Critiques?

Re: [R] Plotting to stdout

2009-08-28 Thread Jeffrey Horner
Gábor Csárdi wrote: On Fri, Aug 28, 2009 at 1:33 PM, Gabor Grothendieck wrote: [...] I could have used this functionality in a previous project as well; however, for Oliver's application just pass the filename to the python program use that in the tag (or have the python program pass the fil

Re: [R] problem plotting with ggplot2

2009-08-28 Thread romunov
As far as I know, the packages are up to date. I have had identical problems on 2.9.1 as well as on 2.8.1. I did a fresh install of 2.9.1 to no avail. Here is my sessionInfo(): > sessionInfo() R version 2.9.1 (2009-06-26) i386-pc-mingw32 locale: LC_COLLATE=Slovenian_Slovenia.1250;LC_CTYPE=Sloveni

[R] RPostgreSQL libpq problem

2009-08-28 Thread Bunny, lautloscrew.com
Dear all, I am stuck trying to get RPostgreSQL running on my Mac. PostgreSQL itself does work fine as it is able to connect with various other apps. Unfortunately the RPostgreSQL package is not available as a binary for MAC OS. Thus I´ve been trying to compile the source for quite some time

Re: [R] Google's R Style Guide

2009-08-28 Thread Duncan Murdoch
On 8/28/2009 9:22 AM, (Ted Harding) wrote: On 28-Aug-09 12:59:24, Esmail wrote: Perhaps most of you have already seen this? http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html Comments/Critiques? Thanks, Esmail ps: Reminds me of PEP 8 for Python http://www.python.o

[R] Help with glmer {lme4) function: how to return F or t statistics instead of z statistics.

2009-08-28 Thread Raldo Kruger
Hi, I'm new to R and GLMMs, and I've been unable to find the answers to my questions by trawling through the R help archives. I'm hoping someone here can help me. I'm running an analysis on Seedling survival (count data=Poisson distribution) on restoration sites, and my main interest is in determi

[R] CHAID in R

2009-08-28 Thread Arup
Hi..I am trying to run CHAID in R..I have installed the sofyware Party and trying to use the function ctree() to carry out the analysis. but I am getting the following message Error in terms.default(formula, data = data) : no terms component . I am having some Likert scale variable where I have va

Re: [R] Google's R Style Guide

2009-08-28 Thread Ted Harding
On 28-Aug-09 12:59:24, Esmail wrote: > Perhaps most of you have already seen this? > > http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html > > Comments/Critiques? > > Thanks, > Esmail > > ps: Reminds me of PEP 8 for Python > > http://www.python.org/dev/peps/pep-0008/ >

Re: [R] Google's R Style Guide

2009-08-28 Thread Duncan Murdoch
On 8/28/2009 8:59 AM, Esmail wrote: Perhaps most of you have already seen this? http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html Comments/Critiques? The rules are mostly reasonable, though they aren't the ones followed in the R source. One bad rule is the one on curl

Re: [R] Google's R Style Guide

2009-08-28 Thread Peter Dalgaard
Esmail wrote: > Perhaps most of you have already seen this? > > http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html > > Comments/Critiques? The recommendation of variable.name over variable_name or variableName is contentious (to say the least) because of the clash with S3 me

Re: [R] regexp help needed.

2009-08-28 Thread Carlos Gonzalo Merino Mendez
Thanks, this what I was looking for. From: Henrique Dallazuanna Cc: r-help@r-project.org Sent: Friday, August 28, 2009 1:42:25 PM Subject: Re: [R] regexp help needed. See this example: Str <- c("345asd", "31qwe", "234tyu", "40kjhg") grep("^3", Str, value = T

[R] Google's R Style Guide

2009-08-28 Thread Esmail
Perhaps most of you have already seen this? http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html Comments/Critiques? Thanks, Esmail ps: Reminds me of PEP 8 for Python http://www.python.org/dev/peps/pep-0008/ Maybe not that surprising since Python is also one of the

Re: [R] Best R text editors?

2009-08-28 Thread Esmail
Jonathan Greenberg wrote: Quick informal poll: what is everyone's favorite text editor for working with R? Emacs+ESS __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proj

Re: [R] Best R text editors?

2009-08-28 Thread Petr PIKAL
Tinn-R Petr r-help-boun...@r-project.org napsal dne 28.08.2009 09:16:38: > On Thu, 27 Aug 2009 12:43:41 -0700 Jonathan Greenberg > wrote: > > JG> Quick informal poll: what is everyone's favorite text editor for > JG> working with R? I'd like to hear from people who are using editors > JG> tha

Re: [R] Best R text editors?

2009-08-28 Thread John Kane
I've only really used Tinn-R but so far I am very happy with it. --- On Thu, 8/27/09, Jonathan Greenberg wrote: > From: Jonathan Greenberg > Subject: [R] Best R text editors? > To: "r-help" > Received: Thursday, August 27, 2009, 3:43 PM > Quick informal poll: what is > everyone's favorite te

Re: [R] setting par(srt) according to plot aspect ratio

2009-08-28 Thread Levi Waldron
On Fri, Aug 28, 2009 at 1:48 AM, Prof Brian Ripley wrote: > Note that the aspect ratio changes when you resize the plot but the angle > of the plotted text will not. So the only safe route is to set 'asp' and > use that setting to select the angle. That is true with screen output, although I ca

[R] Help with glmer {lme4} function: how to return F or t statistics instead of z statistics?

2009-08-28 Thread Raldo Kruger
Hi, I'm new to R and GLMMs, and I've been unable to find the answers to my questions by trawling through the R help archives. I'm hoping someone here can help me. I'm running an analysis on Seedling survival (count data=Poisson distribution) on restoration sites, and my main interest is in determi

[R] How to generate mean anova value row in anova table, instead of individual value for each predictor

2009-08-28 Thread Moumita Das
Hi All , Can anybody tell me if there's any way to get the summarized anova values.Now i will explain what i mean , when i say "*summarized*". Below you can see the anova table of recmeanC1 with rest* all* i.e from recmeanC2 to i15(predictors),as shown in table. Df Sum Squares

Re: [R] Plotting to stdout

2009-08-28 Thread Romain Francois
On 08/28/2009 01:47 PM, Gábor Csárdi wrote: On Fri, Aug 28, 2009 at 1:33 PM, Gabor Grothendieck wrote: [...] I could have used this functionality in a previous project as well; however, for Oliver's application just pass the filename to the python program use that in the tag (or have the pyt

Re: [R] Plotting to stdout

2009-08-28 Thread Gábor Csárdi
On Fri, Aug 28, 2009 at 1:33 PM, Gabor Grothendieck wrote: [...] > > I could have used this functionality in a previous project as well; however, > for Oliver's application just pass the filename to the python program use that > in the tag (or have the python program pass the filename to > the R p

Re: [R] regexp help needed.

2009-08-28 Thread Henrique Dallazuanna
See this example: Str <- c("345asd", "31qwe", "234tyu", "40kjhg") grep("^3", Str, value = TRUE) split(Str, substr(Str, 1, 1)) On Fri, Aug 28, 2009 at 7:29 AM, Carlos Gonzalo Merino Mendez < carlosgmer...@yahoo.com> wrote: > Hi, > > I posted yesterday with a problem in a script. I still have the

Re: [R] delete duplicated conditional

2009-08-28 Thread Christian Schulz
i get it. aposSorted <- apos[order(apos[,620],decreasing=TRUE),] nodups <- aposSorted[!duplicated(aposSorted[,1]),c(1,620)] Hi, have anybody a hint, how i could keep the duplicated with a condition in a second column, i.e. maximum in column 620. nodups <- apos[!duplicated(apos[,1]),c(1,620)

Re: [R] Plotting to stdout

2009-08-28 Thread Gabor Grothendieck
On Fri, Aug 28, 2009 at 7:16 AM, Gábor Csárdi wrote: > On Fri, Aug 28, 2009 at 1:06 PM, Oliver Bandel > wrote: > [...] >> The goal was to produce a picture in a web-environment. >> >> At the moment rpy2 will be used maybe there are way to achieve something >> like that in this way, but I'm als

Re: [R] Plotting to stdout

2009-08-28 Thread Romain Francois
On 08/28/2009 01:16 PM, Gábor Csárdi wrote: On Fri, Aug 28, 2009 at 1:06 PM, Oliver Bandel wrote: [...] The goal was to produce a picture in a web-environment. At the moment rpy2 will be used maybe there are way to achieve something like that in this way, but I'm also new to rpy2. When

Re: [R] Plotting to stdout

2009-08-28 Thread Gábor Csárdi
On Fri, Aug 28, 2009 at 1:06 PM, Oliver Bandel wrote: [...] > The goal was to produce a picture in a web-environment. > > At the moment rpy2 will be used maybe there are way to achieve something > like that in this way, but I'm also new to rpy2. > > When the graphic could be written to stdout,

Re: [R] breaking multi-modal histograms down into combinations o

2009-08-28 Thread Ted Harding
On 28-Aug-09 10:34:46, Thomas Groen wrote: > Dear All, > > Does anybody know if there is a functionality in R to break histograms > that show a clear bi-modal (or multi-modal) distribution into a series > of unimodal histograms that added up result in the original histogram? > I was thinking of us

Re: [R] Plotting to stdout

2009-08-28 Thread Oliver Bandel
Philipp Pagel wzw.tum.de> writes: > > On Wed, Aug 26, 2009 at 07:53:57PM +, Oliver Bandel wrote: > > > > is there a way to write the result of a plot > > to stdout? I mean even a binary thingy like > > a png-file, written to stdout?! > > I tried with the file-argument of png() and jpeg(), >

[R] delete duplicated conditional

2009-08-28 Thread Christian Schulz
Hi, have anybody a hint, how i could keep the duplicated with a condition in a second column, i.e. maximum in column 620. nodups <- apos[!duplicated(apos[,1]),c(1,620)] many thanks Christian __ R-help@r-project.org mailing list https://stat.ethz.ch/

  1   2   >