[R] help

2012-06-02 Thread mudit gupta
hi, i am a newbie to R using rocr package to find out accuracy of a model using rpart perf.acc - max(cust.rp.perf.acc at y.values[[1]]) Error: unexpected symbol in ;perf.acc plot(cust.rp.perf.acc) plot(cust.rp.perf.acc) how to interpret this graph on x-axis cutoff values and on y

Re: [R] Average curve in R

2012-06-02 Thread arun
Hi Qamar, I guess you are looking for row means vs. days plot. If that is the case, try this: datQ-cbind(c(6,5,6,7,4,3,5),c(2,4,35,32,4,6,6),c(2,4,2,3,423,4,5),c(2,3,13,5,3,5,3)) datQmean- apply(datQ,1,mean) [1]   3.00   4.00  14.00  11.75 108.50   4.50   4.75 datQmean-data.frame(datQmean)  

[R] Question about persp3d label direction

2012-06-02 Thread 김태균
Hello, R experts I am a new user of rgl package. I want axis label to be parallel to the axis. However, I cannot find any options in package manual. Could you show me how to how to make label be parallel to crresponding axis. Especially, Z axis label, in case that it is long, protrudes out of the

Re: [R] Average curve in R

2012-06-02 Thread Rui Barradas
Hello, Just to add a note, since R defaults the x axis to the integer sequence 1:length(what.to.plot), this would do it: plot(rowMeans(datQ), type=l) If the op wants to plot this mean values line together with the other 4, one of the most forgotten plot instructions is the matrix plot

Re: [R] how to add a 'label' column

2012-06-02 Thread Jim Lemon
On 06/02/2012 05:47 AM, Jason Love wrote: Hello R users, I'd like to ask a question about how to add a new column. So, below is my situation. In order to perform the repeated ANOVA, I first imported the following table. score=read.csv(patients_tests.csv); subject test1 test2

Re: [R] Add rank column to data frame as in SQL...

2012-06-02 Thread Gabor Grothendieck
On Fri, Jun 1, 2012 at 11:23 AM, Brigid Mooney bkmoo...@gmail.com wrote: Hopefully this is an easy problem... I'm trying to add a partitioned rank column to a data frame where the rank is calculated separately across a partition by categories, the way you could easily do in SQL.  I found this

Re: [R] how to add a 'label' column

2012-06-02 Thread Jason Love
Thanks all for the helpful tips. Jason On Sat, Jun 2, 2012 at 7:14 AM, Jim Lemon j...@bitwrit.com.au wrote: On 06/02/2012 05:47 AM, Jason Love wrote: Hello R users, I'd like to ask a question about how to add a new column. So, below is my situation. In order to perform the repeated

[R] How can I export a paired t-test output table to an excel file?

2012-06-02 Thread Jason Love
Hi R users, Could anyone let me know how to export a paired t-test output table (see below) to an excel file? Jason, with(score2,pairwise.t.test(values,ind, + p.adjust.method=holm, paired=T)) Pairwise comparisons using paired t tests data: values and ind test1

Re: [R] How can I export a paired t-test output table to an excel file?

2012-06-02 Thread Nicolas Iderhoff
Hello Jason, if you put your t-test into an r-object, like here (taken from the documentary example): t.test - pairwise.t.test(Ozone, Month) you can get the table with t.test$p.value also you can get a lot of other stuff. you can see what's available with str(t.test). hope that's what you're

Re: [R] Silencing the output of install.packages()

2012-06-02 Thread Prof Brian Ripley
On 01/06/2012 08:46, Uwe Ligges wrote: On 01.06.2012 07:17, Tejas Kale wrote: Dear Uwe Many thanks for your reply. I agree with you but I need the silencing of output for a particular reason. I am working on a statistical package called VOStat which uses a Java based GUI to get the data and

Re: [R] Converting sp to maps ?/Map projection in sp-package?

2012-06-02 Thread Roger Bivand
Jari Haukka jari.haukka at helsinki.fi writes: Dear All, I hava maps in sp fomat and I like to use different map projection. SHouls I somehow convert sp to maps and make projection and ploting there? Please install the rgdal package, and use the spTransform() methods there to change the

Re: [R] How can I export a paired t-test output table to an excel file?

2012-06-02 Thread David Winsemius
On Jun 2, 2012, at 8:58 AM, Nicolas Iderhoff wrote: Hello Jason, if you put your t-test into an r-object, like here (taken from the documentary example): Would need to attach(airqualty) for that to succeed t.test - pairwise.t.test(Ozone, Month) Better to use an object name that is not

Re: [R] raw input prompt

2012-06-02 Thread David Winsemius
On Jun 1, 2012, at 2:01 PM, meatloafthefrog wrote: Ah. I'm very new to this and I definitely wasn't clear enough about what I'm trying to do... sorry. I am extracting information (in this case, DNA sequences to be exported to a fasta file) from just two columns of a table that has a lot

[R] mgcv (bam) very large standard error difference between versions 1.7-11 and 1.7-17, bug?

2012-06-02 Thread Martijn Wieling
Dear useRs, I reran an analysis with bam (mgcv, version 1.7-17) originally conducted using an older version of bam (mgcv, version 1.7-11) and this resulted in the same estimates, but much lower standard errors (in some cases 20 times as low) and lower p-values. This obviously results in a larger

Re: [R] raw input prompt

2012-06-02 Thread J Toll
On Fri, Jun 1, 2012 at 1:01 PM, meatloafthefrog meatloafthef...@gmail.com wrote: I want a prompt that asks the user for the file name of the table, the response to which will be the name of the table in R. So I did something like: file_name = function()                                        

Re: [R] raw input prompt

2012-06-02 Thread Bert Gunter
... or On Sat, Jun 2, 2012 at 11:29 AM, J Toll jct...@gmail.com wrote: On Fri, Jun 1, 2012 at 1:01 PM, meatloafthefrog meatloafthef...@gmail.com wrote: I want a prompt that asks the user for the file name of the table, the response to which will be the name of the table in R. So I did

[R] Double-buffering problem, this time with an example.

2012-06-02 Thread Daniel Carr
Most of my animations that used to work on windows() version 2.11.1 and earlier now flash as if the double buffering is turned off or buffer swapping is triggered by other events than in the past. The simplified example below using symbols should illustrate the problem in a windows environment.

Re: [R] plot background - excel gradient style background ?

2012-06-02 Thread Greg Snow
The short answer is yes. The question as answer is what is wrong with your data that you feel the need to hide/distort information and distract from the story of the data?. The hopefully thought provoking answer is fortune(197). The answer to the question not asked that should have been is No!

Re: [R] Determining frequency and period of a wave

2012-06-02 Thread Greg Snow
You could use the 'nls' function to fit a sine (or cosine) function to the data. On Fri, Jun 1, 2012 at 7:54 PM, Aaron Patterson tenderl...@ruby-lang.org wrote: Hello!  I'm collecting data on a refrigerator that I'm using to cure meat.  Specifically I am collection humidity and temperature

Re: [R] Double-buffering problem, this time with an example.

2012-06-02 Thread Bert Gunter
For the record, I confirm Dan's description on Windows: sessionInfo() R version 2.15.0 (2012-03-30) Platform: x86_64-pc-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5]

Re: [R] mgcv (bam) very large standard error difference between versions 1.7-11 and 1.7-17, bug?

2012-06-02 Thread Simon Wood
the fREML results must be a bug. I'd modified the bam covariance and edf code in 1.7-17 and it looks like I must have messed something up. Any chance you could send me the data off line? Also can you try summary(...,freq=FALSE) under 1.7-17 and see if you get the same results as before? On

Re: [R] Double-buffering problem, this time with an example.

2012-06-02 Thread Duncan Murdoch
On 12-06-02 4:02 PM, Daniel Carr wrote: Most of my animations that used to work on windows() version 2.11.1 and earlier now flash as if the double buffering is turned off or buffer swapping is triggered by other events than in the past. The simplified example below using symbols should

[R] mtext bug

2012-06-02 Thread Matthew Johnson
Sir, I have hit a the limits of my understanding of text / par / opar etc... I have a few related xts data frames which have multiple columns, and have written a for-loop to make a set of charts - however i do not get any margin text when i run the loop. when i test the code outside of the loop

Re: [R] mtext bug

2012-06-02 Thread Duncan Murdoch
On 12-06-02 6:21 PM, Matthew Johnson wrote: Sir, I have hit a the limits of my understanding of text / par / opar etc... I have a few related xts data frames which have multiple columns, and have written a for-loop to make a set of charts - however i do not get any margin text when i run the

Re: [R] mtext bug

2012-06-02 Thread Matthew Johnson
thanks very much - fixed. On 3 June 2012 08:26, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 12-06-02 6:21 PM, Matthew Johnson wrote: Sir, I have hit a the limits of my understanding of text / par / opar etc... I have a few related xts data frames which have multiple columns, and

Re: [R] Missing times chron

2012-06-02 Thread Gabor Grothendieck
On Fri, Jun 1, 2012 at 11:02 AM, Rick Admiraal admiraal.r...@gmail.com wrote: Dear all, As a novice user of R I ran into a problem that's quite hard for me to resolve. I have a database containing data of a clinical trial in which patients are included that survived or died: x -

Re: [R] mtext bug

2012-06-02 Thread Matthew Johnson
Sir, I am now having a similar problem with the barplot: i cannot get the margin text to 'stick'. png(paste(drive, MoMUnit.png, sep=)) par(mar=c(10, 3, 2, 2), opar=(1,0,0,0)) mainnameUnit = expression(paste(MoM %, Delta, Apptmnt Prices, sep=)) ymin - min(percentDiff[,c(6, 9, 33, 36,

[R] multiple variance structure in lmer giving zero variances

2012-06-02 Thread Sara Krause
Hi all, I’m hoping someone might be able to help me out. Forgive me if my mistake is something simple. I am new to mixed models, new to R, and new to lme4 and am struggling to figure everything out. I have two questions that I am hoping someone can answer. 1) Am I using the correct random

[R] R 2.15.0 and 2.14.2 crash on the same code that runs on 2.14.1

2012-06-02 Thread Ebrahim Jahanshiri
Dear list, My code runs on 2.14.1 smoothly (with no error) but makes R crash on 2.14.2 and 2.15.0 with the usual windows message about R for windows GUI front-end has stopped working... and as such I dont have any access to R to get any error or warning message (if any). It crashes on random