Re: [R] Problem in convert function in RTAQ package

2012-05-20 Thread Joshua Wiley
Do you get any errors? I am not too familiar with RTAQ, but I am not seeing aynthing you are doing obviously wrong. Another possibility I guess is that R may not have write permission to the datadestination folder. It may help if you could report some more information, maybe upload the text file

[R] convert function in RTAQ package for high frequency data analysis

2012-05-20 Thread rahul deora
Hello Everyone, I am trying to convert the txt file into RData format by using convert function in RTAQ package.The txt file looks like: 2010-07-01 08:04:28 SBUX Q 24.9500 100 T 0 0 2010-07-01 08:04:28 SBUX Q 24.9500 100 T 0 0 2010-07-01 08:04:28 SBUX Q 24.9600 300 T 0 0 The code I am using is:

Re: [R] question about sign test

2012-05-20 Thread Joshua Wiley
Hi, That seems a reasonable enough approach to me. (p <- pnorm(0, mean = 1, sd = .5)) is the probability of a value being less than or up to 0 from the distribution you specified. Using that, lets repeat your little test 1000 times using your code, and then using ribnom() where the probability

Re: [R] write.xls

2012-05-20 Thread Spencer Graves
On 5/20/2012 5:37 PM, Gabor Grothendieck wrote: Unfortunately this is getting increasingly complex due to the non-standard evaluation done by dataframes2xls but if you want to do it then this will do it. We copy dataframes2xls to the current environment and reset write.xls's environment so tha

Re: [R] Names of Greek letters stored as character strings; plotmath.

2012-05-20 Thread Duncan Murdoch
On 12-05-20 10:28 PM, Bert Gunter wrote: Well, that's not very comforting, Duncan. It's like saying that you have to read the engineering specs to drive the car successfully. I think Robert's message that I responded to was asking for a deeper understanding than simply driving the car. He app

Re: [R] Names of Greek letters stored as character strings; plotmath.

2012-05-20 Thread Joshua Wiley
This may be a profoundly bad idea, but if deduction is beyond the skill of those with time, perhaps an inferential approach could be used. Create examples of when one approach versus another works. A book of spells, if you will, so that rather than hoping and typing wildly, the magic incantati

Re: [R] Names of Greek letters stored as character strings; plotmath.

2012-05-20 Thread Bert Gunter
Well, that's not very comforting, Duncan. It's like saying that you have to read the engineering specs to drive the car successfully. I am certainly ignorant of the internals, but I honestly believe well-written documentation on these points would help. I learned a lot when I read V&R's "S Program

Re: [R] write.xls

2012-05-20 Thread Gabor Grothendieck
On Sun, May 20, 2012 at 7:15 PM, Spencer Graves wrote: > On 5/20/2012 5:52 AM, Gabor Grothendieck wrote: >> >> On Sun, May 20, 2012 at 8:30 AM, Gabor Grothendieck >>  wrote: >>> >>> On Sat, May 19, 2012 at 9:32 PM, Spencer Graves >>>  wrote: Hello, All:      The "writeFi

Re: [R] write.xls

2012-05-20 Thread Spencer Graves
Hi, Jim: On 5/20/2012 4:54 PM, jim holtman wrote: Here is what it take to write out two sheets with XLConnect # function to write out a sheet to an EXCEL file that I use f.writeXLSheet<- function (data, sheet, fileToWrite, rownames = NULL) { require(XLConnect) writeWorksheetToFile(f

Re: [R] Names of Greek letters stored as character strings; plotmath.

2012-05-20 Thread Duncan Murdoch
On 12-05-20 6:53 PM, Robert Baer wrote: -Original Message- From: William Dunlap Sent: Saturday, May 19, 2012 11:07 AM To: Rolf Turner Cc: r-help Subject: Re: [R] Names of Greek letters stored as character strings;plotmath. parse(text=paste(...)) works in simple cases but not in others.

Re: [R] write.xls

2012-05-20 Thread jim holtman
Here is what it take to write out two sheets with XLConnect # function to write out a sheet to an EXCEL file that I use f.writeXLSheet <- function (data, sheet, fileToWrite, rownames = NULL) { require(XLConnect) writeWorksheetToFile(fileToWrite, data = data, sheet = sheet, rowname

Re: [R] Names of Greek letters stored as character strings; plotmath.

2012-05-20 Thread Rolf Turner
On 21/05/12 10:53, Robert Baer wrote: This discussion has been exceedingly helpful, sort of. Every time I try to do a task involving this I read the documentation for bquote(), expression(), plotmath(), etc., over and over, and I still fail to get the big picture of how R parses things u

Re: [R] write.xls

2012-05-20 Thread Spencer Graves
On 5/20/2012 5:52 AM, Gabor Grothendieck wrote: On Sun, May 20, 2012 at 8:30 AM, Gabor Grothendieck wrote: On Sat, May 19, 2012 at 9:32 PM, Spencer Graves wrote: Hello, All: The "writeFindFn2xls" function in the "sos" package tries to write an Excel file with 3 sheets ('PackageSum2'

Re: [R] Axis mayhem in plot3d

2012-05-20 Thread Duncan Murdoch
On 12-05-20 4:01 PM, Andrew Roberts wrote: Wise people, I have a plot of age, vertebral level and depth of the spinal cord from the skin in children that I can interact with in sculpt3d: Your subject says plot3d, but your example uses sculpt3d, and you don't say what packages you're using.

Re: [R] Names of Greek letters stored as character strings; plotmath.

2012-05-20 Thread Robert Baer
-Original Message- From: William Dunlap Sent: Saturday, May 19, 2012 11:07 AM To: Rolf Turner Cc: r-help Subject: Re: [R] Names of Greek letters stored as character strings;plotmath. parse(text=paste(...)) works in simple cases but not in others. The fortune about it is there because

[R] CRAN (and crantastic) updates this week

2012-05-20 Thread Crantastic
CRAN (and crantastic) updates this week New packages * bisectr (0.0.2) Maintainer: Winston Chang Author(s): Winston Chang License: GPL-2 http://crantastic.org/packages/bisectr Tools to find bad commits with git bisect * CUMP (1.0) Maintainer: Xuan Liu Author(s): Xuan

Re: [R] Q - scatterplot, plot function & trellis linear regressions???

2012-05-20 Thread Jhope
HI R-listers, Thanks for the replies I am convinced of Q 1 and 2. Q 3 - I am still unsuccessful. Aeventexhumed has three events A, B and C. I am unable to make 3 windows of scatterplot graphs side by side showing the difference in regression of each event. With and without lattice I have trie

Re: [R] Histograms with bin proportions on the y-axis

2012-05-20 Thread Ted Harding
See in-line below. On 20-May-2012 19:07:55 Nick Gayeski wrote: > I have what is probably a simple problem. I have a data file > from an MCMC Bayes estimation problem that is a vector of 500,000 > numeric values (just one variable) ranging from 100,000 to 700,000. > I need to display the histogram

Re: [R] Histograms with bin proportions on the y-axis

2012-05-20 Thread R. Michael Weylandt
To open a graphics device, you usually use a function like png() or eps() then do your plotting then dev.off() to close it when you're done. Sounds like you need something like hist(x, breaks = 100, freq = TRUE) Hope that helps, Michael On Sun, May 20, 2012 at 3:07 PM, Nick Gayeski wrote: > I

Re: [R] dot - comma problem

2012-05-20 Thread Milan Bouchet-Valat
Le dimanche 20 mai 2012 à 23:52 +1000, may.k...@yahoo.de a écrit : > Dear all > > I am trying to use the ODB package to connect to an libreoffice-odb database. > The libreoffice package is german, thus, decimal separator is a comma. > However, > I can open the database and upload a it without e

Re: [R] R Memory Issues

2012-05-20 Thread Emiliano Zapata
Already then, thank you everyone. This information was extremly useful, and I'll do a better job on the web next time. On Sun, May 20, 2012 at 2:10 PM, Prof Brian Ripley wrote: > On 20/05/2012 18:42, jim holtman wrote: > >> At the point in time that you get the error message, how big are the >> o

[R] Histograms with bin proportions on the y-axis

2012-05-20 Thread Nick Gayeski
I have what is probably a simple problem. I have a data file from an MCMC Bayes estimation problem that is a vector of 500,000 numeric values (just one variable) ranging from 100,000 to 700,000. I need to display the histogram of this data in a high quality graphic for a figure in a journal publica

[R] Axis mayhem in plot3d

2012-05-20 Thread Andrew Roberts
Wise people, I have a plot of age, vertebral level and depth of the spinal cord from the skin in children that I can interact with in sculpt3d: sculpt3d(Depth[,4],Depth$LevelNo,Depth$Depth,type="s",radius=.3, alpha=.5) decorate3d(axes=FALSE, box=FALSE,xlab="Age", ylab="Level",zlab="Depth") To m

Re: [R] R Memory Issues

2012-05-20 Thread Prof Brian Ripley
On 20/05/2012 18:42, jim holtman wrote: At the point in time that you get the error message, how big are the objects that you have in memory? What does 'memory.size()' show as being used? What does 'memory.limit()' show? Have you tried using 'gc()' periodically to do some garbage collection?

Re: [R] dot - comma problem

2012-05-20 Thread Prof Brian Ripley
Please report bugs in the ODB package (wherever that is from: you did not tell us) to its maintainer. ?Sys.setlocale will explain how to undo the damage. On 20/05/2012 14:52, may.k...@yahoo.de wrote: Dear all I am trying to use the ODB package to connect to an libreoffice-odb database. The li

Re: [R] R Memory Issues

2012-05-20 Thread Patrick Burns
You are on a 64-bit machine, but are you using 64-bit R? Are you using memory intensive constructs like those discussed in Circle 2 of 'The R Inferno'? http://www.burns-stat.com/pages/Tutor/R_inferno.pdf Pat On 20/05/2012 17:09, Emiliano Zapata wrote: -- Forwarded message -- F

Re: [R] (no subject)

2012-05-20 Thread Uwe Ligges
On 20.05.2012 18:09, Emiliano Zapata wrote: Hi, I have a 64 bits machine (Windows) with a total of 192GB of physical memory (RAM), and total of 8 CPU. I wanted to ask how can I make R make use of all the memory. I recently ran a script requiring approximately 92 GB of memory to run, and got th

Re: [R] R Memory Issues

2012-05-20 Thread Jeff Newmiller
http://cran.r-project.org/bin/windows/base/rw-FAQ.html#There-seems-to-be-a-limit-on-the-memory-it-uses_0021 Have you read the documentation? --- Jeff NewmillerThe . . Go Live... DCN:

Re: [R] write.xls

2012-05-20 Thread Spencer Graves
On 5/20/2012 6:47 AM, Marc Schwartz wrote: On May 19, 2012, at 8:32 PM, Spencer Graves wrote: Hello, All: The "writeFindFn2xls" function in the "sos" package tries to write an Excel file with 3 sheets ('PackageSum2', 'findFn', 'call'). Unfortunately, it is often unable to do this beca

Re: [R] R Memory Issues

2012-05-20 Thread jim holtman
At the point in time that you get the error message, how big are the objects that you have in memory? What does 'memory.size()' show as being used? What does 'memory.limit()' show? Have you tried using 'gc()' periodically to do some garbage collection? It might be that you memory is fragmented.

Re: [R] R Memory Issues

2012-05-20 Thread Wincent
Try memory.limit(92000) sent from my HTC On May 21, 2012 1:27 AM, "Emiliano Zapata" wrote: > -- Forwarded message -- > From: Emiliano Zapata > Date: Sun, May 20, 2012 at 12:09 PM > Subject: > To: R-help@r-project.org > > > Hi, > > I have a 64 bits machine (Windows) with a total

[R] question about sign test

2012-05-20 Thread T Bal
Hi, I want to compute p value of sign test for sample size=15 from normal distr., sd=0.5, mean=1, alternative should be two sided. Is this code correct in this situation? binom.test(sum(rnorm(15,1,0.5)>0),15,p=0.5,alternative="two")$p.value Or should I use another code (function) e.g. rbinom?

[R] R Memory Issues

2012-05-20 Thread Emiliano Zapata
-- Forwarded message -- From: Emiliano Zapata Date: Sun, May 20, 2012 at 12:09 PM Subject: To: R-help@r-project.org Hi, I have a 64 bits machine (Windows) with a total of 192GB of physical memory (RAM), and total of 8 CPU. I wanted to ask how can I make R make use of all the mem

Re: [R] KEGGSOAP installation error

2012-05-20 Thread TEOMB84
Hi Martin, I've already checked XML library in R but it seems there's no issues regarding it. I've also tried to update all installed R packages and to install several libraries related to libxml2 library in ubuntu, but the problem is still there. I will try to post the same problem in the biocon

[R] (no subject)

2012-05-20 Thread Emiliano Zapata
Hi, I have a 64 bits machine (Windows) with a total of 192GB of physical memory (RAM), and total of 8 CPU. I wanted to ask how can I make R make use of all the memory. I recently ran a script requiring approximately 92 GB of memory to run, and got the massage: cannot allocate memory block of si

[R] dot - comma problem

2012-05-20 Thread may . ka38
Dear all I am trying to use the ODB package to connect to an libreoffice-odb database. The libreoffice package is german, thus, decimal separator is a comma. However, I can open the database and upload a it without error, library(ODB) db <- odb.open("Test.odb") but a soon as the "odb.open" com

Re: [R] write.xls

2012-05-20 Thread Spencer Graves
Hi, Gabor: Thanks. I'll try that. Spencer On 5/20/2012 5:52 AM, Gabor Grothendieck wrote: On Sun, May 20, 2012 at 8:30 AM, Gabor Grothendieck wrote: On Sat, May 19, 2012 at 9:32 PM, Spencer Graves wrote: Hello, All: The "writeFindFn2xls" function in the "sos" package tries to w

Re: [R] removeing only rows/columns with "na" value from square ( symmetrical ) matrix.

2012-05-20 Thread peter dalgaard
On May 20, 2012, at 16:37 , Bert Gunter wrote: > Your problem is not well-defined. In your example below, why not > remove rows 1,2,6, and 10, all of which contain NA's? Is the matrix > supposed to be symmetric? Do NA's always occur symmetrically? ...and even if they do, how do you decide whethe

Re: [R] removeing only rows/columns with "na" value from square ( symmetrical ) matrix.

2012-05-20 Thread Gabor Grothendieck
On Sun, May 20, 2012 at 10:52 AM, Gabor Grothendieck wrote: > On Sun, May 20, 2012 at 10:17 AM, Nevil Amos wrote: >> I have some square matrices with na values in corresponding rows and >> columns. >> >> M<-matrix(1:2,10,10) >> M[6,1:2]<-NA >> M[10,9]<-NA >> M<-as.matrix(as.dist(M)) >> print (M)

Re: [R] removeing only rows/columns with "na" value from square ( symmetrical ) matrix.

2012-05-20 Thread Gabor Grothendieck
On Sun, May 20, 2012 at 10:17 AM, Nevil Amos wrote: > I have some square matrices with na values in corresponding rows and > columns. > > M<-matrix(1:2,10,10) > M[6,1:2]<-NA > M[10,9]<-NA > M<-as.matrix(as.dist(M)) > print (M) > >    1 2 3 4 5 6 7 8 9 10 > 1   0  2 1 2 1 NA 1 2  1  2 > 2   2  0 1

Re: [R] removeing only rows/columns with "na" value from square ( symmetrical ) matrix.

2012-05-20 Thread Bert Gunter
Your problem is not well-defined. In your example below, why not remove rows 1,2,6, and 10, all of which contain NA's? Is the matrix supposed to be symmetric? Do NA's always occur symmetrically? You either need to rethink what you want to do or clarify your statement of it. -- Bert On Sun, May 2

[R] removeing only rows/columns with "na" value from square ( symmetrical ) matrix.

2012-05-20 Thread Nevil Amos
I have some square matrices with na values in corresponding rows and columns. M<-matrix(1:2,10,10) M[6,1:2]<-NA M[10,9]<-NA M<-as.matrix(as.dist(M)) print (M) 1 2 3 4 5 6 7 8 9 10 1 0 2 1 2 1 NA 1 2 1 2 2 2 0 1 2 1 NA 1 2 1 2 3 1 1 0 2 1 2 1 2 1 2 4 2 2 2 0 1 2 1 2 1

Re: [R] write.xls

2012-05-20 Thread Marc Schwartz
On May 20, 2012, at 7:30 AM, Gabor Grothendieck wrote: > On Sat, May 19, 2012 at 9:32 PM, Spencer Graves > wrote: >> Hello, All: >> >> >> The "writeFindFn2xls" function in the "sos" package tries to write an >> Excel file with 3 sheets ('PackageSum2', 'findFn', 'call'). Unfortunately, >>

Re: [R] write.xls

2012-05-20 Thread Marc Schwartz
On May 19, 2012, at 8:32 PM, Spencer Graves wrote: > Hello, All: > > > The "writeFindFn2xls" function in the "sos" package tries to write an > Excel file with 3 sheets ('PackageSum2', 'findFn', 'call'). Unfortunately, it > is often unable to do this because of configuration problems that

Re: [R] write.xls

2012-05-20 Thread Gabor Grothendieck
On Sun, May 20, 2012 at 8:30 AM, Gabor Grothendieck wrote: > On Sat, May 19, 2012 at 9:32 PM, Spencer Graves > wrote: >> Hello, All: >> >> >>      The "writeFindFn2xls" function in the "sos" package tries to write an >> Excel file with 3 sheets ('PackageSum2', 'findFn', 'call'). Unfortunately, >>

Re: [R] converting csv to image file

2012-05-20 Thread Belay Gebregiorgis
Dear Simon, I understand better now and it is running. //Belay On Sat, May 19, 2012 at 1:22 PM, Simon Knapp wrote: > I'm not sure what line you mean. The thing you pass to raster should > be a matrix of the dimensions of your image data. > > You should have have xmin, xmax, ymin and ymax defin

Re: [R] write.xls

2012-05-20 Thread Gabor Grothendieck
On Sat, May 19, 2012 at 9:32 PM, Spencer Graves wrote: > Hello, All: > > >      The "writeFindFn2xls" function in the "sos" package tries to write an > Excel file with 3 sheets ('PackageSum2', 'findFn', 'call'). Unfortunately, > it is often unable to do this because of configuration problems that

Re: [R] write.xls

2012-05-20 Thread Spencer Graves
On 5/19/2012 7:59 PM, Jim Holtman wrote: I have been using XLConnect to write multisheet Excel without any problems. Thanks very much. That looks like it will solve my problems. Best Wishes, Spencer p.s. findFn{sos} identified thatt for me, but for some unknown reason, I

Re: [R] anovas ss typeI vs typeIII

2012-05-20 Thread peter dalgaard
On May 20, 2012, at 00:58 , jacaranda tree wrote: > Hi all, > I have been struggling with ANOVAs on R. I am new to R, so I created a simple > data frame, and I do some analyses on R just to learn R and then check them > on SPSS to make sure that I am doing fine. Here is the problem that I've ru

Re: [R] translation

2012-05-20 Thread Prof Brian Ripley
On 20/05/2012 00:01, Duncan Murdoch wrote: On 12-05-18 2:23 PM, David Winsemius wrote: On May 18, 2012, at 10:52 AM, Duncan Murdoch wrote: On 12-05-18 5:15 AM, gholi bahrami wrote: Dear Sir/Madam I am a BSc student studying statistics in Ferdowsi University of Mashhad,Iran. Translating R mes