Re: [R] regex not working for some entries in for loop

2015-11-07 Thread Omar André Gonzáles Díaz
Thanks S. Ellison. Finally, Ihad some time to test it. Thanks for your clarification. Just one more question: You say: Your regexes are on multiple lines and include whitespace and linefeeds. For example you are not testing for " .*forum.*|.*buy.*"; you are testing for " .*forum.*|

Re: [R] QuantMod and XML

2015-11-07 Thread Dirk Eddelbuettel
On 7 November 2015 at 19:37, Robert Sherry wrote: | Warning message: package ‘XML’ is not available (for R version 3.1.2) That is your problem. You are running R 3.1.2. That is old and outdated. CRAN has packages -- which may on occassion impose a '>=' relation. That is the case here. Yo

Re: [R] QuantMod and XML

2015-11-07 Thread Robert Sherry
Thanks for the response. I am currently using Windows 7. I tried the following command: install.packages("XML", repos = "http://www.omegahat.org/R";) and I got: Installing package into ‘C:/Users/Bob/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) Warning: unable to acces

Re: [R] QuantMod and XML

2015-11-07 Thread Hasan Diwan
Bob, On 7 November 2015 at 15:27, Robert Sherry wrote: > > I am trying to use the package quantmod to get option quotes in R. > Therefore, I executed the following two commands: > library ("quantmod" ) > getOptionChain("AAPL") > The first one worked but the second one produced th

[R] QuantMod and XML

2015-11-07 Thread Robert Sherry
I am trying to use the package quantmod to get option quotes in R. Therefore, I executed the following two commands: library ("quantmod" ) getOptionChain("AAPL") The first one worked but the second one produced the following error message: Error in getOptionChain.yahoo

Re: [R] About error: L-BFGS-B needs finite values of 'fn'

2015-11-07 Thread ProfJCNash
Numerical gradient approximations are being used in your call, so my guess is that the "epsilon" has made (parameter + epsilon) an inadmissible argument for your likelihood. If you can supply analytical gradients, the issue has a good chance of going away. Otherwise, you'll need to use bounds or tr

[R] About error: L-BFGS-B needs finite values of 'fn'

2015-11-07 Thread Deniz OZONUR
Hi, I am trying to obtain power of Likelihood ratio test for comparing gamma distribution against generalized gamma distribution. And so I need maximum likelihood estimates of Generalized gamma distribution with three parameters. I wrote code as follows. require(bbmle) library("bbmle") requ

Re: [R] How to change name of pdf output of function windRose in openair package

2015-11-07 Thread Stefano Sofia
Thanks to Jim and to Petr for their suggestion. Stefano Da: PIKAL Petr [petr.pi...@precheza.cz] Inviato: giovedì 5 novembre 2015 15.02 A: Stefano Sofia Cc: r-help@r-project.org Oggetto: RE: [R] How to change name of pdf output of function windRose in opena

Re: [R] group by function

2015-11-07 Thread Ragia Ibrahim
many thanks for replying, yes I am kindly accept my pardon, I mistaken the rows from each other many thanks I will read them. Ragia  > Date: Sat, 7 Nov 2015 07:48:36 -0800 > Subject: Re: [R] group by function > From: bgunter.4...@gmail.com > To: ragi..

Re: [R] group by function

2015-11-07 Thread Bert Gunter
?? Row 4 has i = 2 and Measure_id =4 and therefore has value divided by the max of all values with that i and Measure_id, which is 1. Row 7 has i =2 and Measure_id =2, and so is divided by the max value in all rows with those values of i and Measure_id, which is 2. etc. So either you do not unders

[R] group by function

2015-11-07 Thread Ragia Ibrahim
Dear group, kindly, I have the following data frame structure(c(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1.5, 2, 1, 0, 2, 2, 1.5, 0, 0, 1, 1, 2, 0, 1, 2), .Dim = c(15L, 3L), .Dimnames = list( NULL, c("i", "Measure_id", "value"))) it has 3 c

Re: [R] Read a file on every 0.5 (or less) second intervall

2015-11-07 Thread peter dalgaard
> On 07 Nov 2015, at 04:56 , Mohammad Tanvir Ahamed via R-help > wrote: > > Hi, > i want to read a file on every 0.5 (or less) second. How can i set this time > loop to read a file ? > Any idea will be appreciated . Thanks . Tanvir Ahamed Sys.sleep() if exact timing is not too critical. Oth

Re: [R] Read a file on every 0.5 (or less) second intervall

2015-11-07 Thread jim holtman
?Sys.sleep Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Fri, Nov 6, 2015 at 10:56 PM, Mohammad Tanvir Ahamed via R-help < r-help@r-project.org> wrote: > Hi, > i want to read a file on every 0.5 (or les