[R] HTML help -- as a single document for the entire package

2016-04-06 Thread Holger Hoefling
Hi, I was wondering if there was an equivalent to the pdf-manual for R-packages, but rendered as a single html page? I am looking for this as it would make reading easier as - no restriction to the standard paper width, but flowing to the browser window size - no page breaks - full text search acr

Re: [R] Good pointers for understanding the R language implementation

2016-04-06 Thread Giorgio Garziano
Guessing that you may want to take a look at: http://adv-r.had.co.nz/Expressions.html https://www.opencpu.org/ Anyway, as David wrote, that it is too vague for specific hints. -- Best, GG [[alternative HTML version deleted]] __ R-help

Re: [R] HTML help -- as a single document for the entire package

2016-04-06 Thread Duncan Murdoch
On 06/04/2016 4:17 AM, Holger Hoefling wrote: Hi, I was wondering if there was an equivalent to the pdf-manual for R-packages, but rendered as a single html page? I am looking for this as it would make reading easier as - no restriction to the standard paper width, but flowing to the browser win

Re: [R] Problem with <= (less than or equal): not giving the expected result

2016-04-06 Thread S Ellison
> Apparently, abs(1 - 0.95) is not equal to 0.05, which I find however quite > disturbing. It's normal.* See R FAQ 7.31 in the html help system. S Ellison *... and common to all computers that use binary. *** This email and any

[R] Memory problem

2016-04-06 Thread Amelia Marsh via R-help
Dear R Forum, I have about 2000+ FX forward transactions and I am trying to run 1000 simulations. If I use less no of simulations, I am able to get the desired results. However, when I try to use more than 1000 simulations, I get following error. > sorted2 <- ddply(sorted, .(currency_from_exch

[R] Descriptive Statistics of time series data

2016-04-06 Thread Saba Sehrish via R-help
Hi I have four variables and the time series data for each variable consists of values for past 10 years on monthly basis. I want to get descriptive stats for these four variables separately (mean, median, sd, min, max). The data I import to R consists of different columns, where each column gi

Re: [R] Memory problem

2016-04-06 Thread jim holtman
It is hard to tell from the information that you have provided. Do you have a list of the sizes of all the objects that you have in memory? Are you releasing large objects at the end of each simulation run? Are you using 'gc' to garbage collect any memory after deallocating objects? Collect some

Re: [R] Good pointers for understanding the R language implementation

2016-04-06 Thread Christopher Desjardins
This might be useful: http://adv-r.had.co.nz/ On Tue, Apr 5, 2016 at 10:31 AM, Francisco Banha wrote: > Dear All, > > I'm currently working on a project with > the purpose of remotely executing R code, which requires me to have to > work with the code of R itself. I've searched the Internet for

Re: [R] R-dvel [robustness Simulation study of 2 sample test on several combination of factors ]

2016-04-06 Thread Michael Friendly
On 4/4/2016 9:15 PM, tan sj wrote: hi, i am new in this field. do favorite If I wish to conduct a simulation on the robustness of two sample test by using R language, is that a

Re: [R] Memory problem

2016-04-06 Thread jim holtman
You say it is "getting stored"; is this in memory or on disk? How are you processing the results of the 1,000 simulations? So some more insight into the actual process would be useful. For example, how are the simulations being done, are the results stored in memory, or out to a file, what are y

Re: [R] Memory problem

2016-04-06 Thread Jeff Newmiller
As Jim has indicated, memory usage problems can require very specific diagnostics and code changes, so generic help is tough to give. However, in most cases I have found the dplyr package to be more memory efficient than plyr, so you could consider that. Also, you can be explicit about only s

[R] Issue while building xtable on R on Ubuntu 15.04

2016-04-06 Thread Zaid Golwala
Hi, I am trying to build xtable on R on Ubuntu 15.04 but I get following error : + R CMD check --no-vignettes --timings xtable_1.8-2.tar.gz * using log directory '/home/jenkins/workspace/Rlang_xtable_Ubuntu15.04/xtable.Rcheck' * using R version 3.2.3 (2015-12-10) * using platform: powerpc64

[R] Extracting windows from time series

2016-04-06 Thread maettuw
Dear R Users Thanks for the help in advance and lets get straight to the problem: I have a 400 year long temperature time series and I am looking for decades that show a linear trend decrease of approximately -0.1 Kelvin or degrees. --> What I would like to program: A loop/function / command lin

[R] Plotting data on a map

2016-04-06 Thread phiroc
Hello, I would like to generate a small map (say 10cm x 10cm) of France showing cumulative numbers by Distribution Center stored in a database: DISTRIBUTION_CENTER COUNT Paris 122 Paris 3 Paris

Re: [R] Memory problem

2016-04-06 Thread Amelia Marsh
Dear Sir, Thanks for the guidance. Will check. And yes, at the end of each simulation, a large result is getting stored.  Regards Amelia On Wednesday, 6 April 2016 5:48 PM, jim holtman wrote: It is hard to tell from the information that you have provided.  Do you have a list of the siz

Re: [R] HTML help -- as a single document for the entire package

2016-04-06 Thread David Winsemius
> On Apr 6, 2016, at 2:37 AM, Duncan Murdoch wrote: > > On 06/04/2016 4:17 AM, Holger Hoefling wrote: >> Hi, >> >> I was wondering if there was an equivalent to the pdf-manual for >> R-packages, but rendered as a single html page? I am looking for this as it >> would make reading easier as >> -

Re: [R] HTML help -- as a single document for the entire package

2016-04-06 Thread Duncan Murdoch
On 06/04/2016 12:06 PM, Holger Hoefling wrote: Hi David, thanks - I do have that as well. That is a good chance to clarify. The regular help gives a *separate* page for every single function. The regular pdf-manual gives one document for *all* functions in a package. The nice thing about hav

Re: [R] HTML help -- as a single document for the entire package

2016-04-06 Thread David L Carlson
It is not quite what you are asking for, but there are several online pdf to html conversion websites. I tried a simple package pdf file and it converted fine. The page numbers are still there, but it is a single continuous page. - David L Carlson Department o

[R] R simulation help pls

2016-04-06 Thread tan sj
Hi, i am student from malaysia, i am new in r programming field, now i am trying to conduct a robustness study on 2 sample test under several combination of factors such as sample sizes ,standard deviation ratio and also distribution.. but now i am stucking in how to use for loop or apply fun

Re: [R] R-dvel [robustness Simulation study of 2 sample test on several combination of factors ]

2016-04-06 Thread tan sj
Hi, i think i have figured the purpose of using this index (i-1)*5+j in the previous example that you gave. It is because that i have to consider the outer loop and inner loop also... so the iterative for i need to minus one because it have ran one times simulation already ,then times the numb

Re: [R] HTML help -- as a single document for the entire package

2016-04-06 Thread Holger Hoefling
Hi David, thanks - I do have that as well. That is a good chance to clarify. The regular help gives a *separate* page for every single function. The regular pdf-manual gives one document for *all* functions in a package. The nice thing about having a single html page for all functions in a packag

Re: [R] Plotting data on a map

2016-04-06 Thread Giorgio Garziano
Some tutorials and examples may help. http://www.zoology.ubc.ca/~kgilbert/mysite/Miscellaneous_files/R_MakingMaps.pdf http://coulmont.com/cartes/rcarto.pdf https://pakillo.github.io/R-GIS-tutorial/ http://www.milanor.net/blog/maps-in-r-plotting-data-points-on-a-map/ https://www.youtube.com/wat

Re: [R] Plotting data on a map

2016-04-06 Thread Bert Gunter
Did you check the "Spatial" task view page? https://cran.r-project.org/web/views/Spatial.html Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On We

Re: [R] Descriptive Statistics of time series data

2016-04-06 Thread John C Frain
Use the r function scan() to read the entire file into a vector and then extract the observations for each series (possible using loops?) John C Frain 3 Aranleigh Park Rathfarnham Dublin 14 Ireland www.tcd.ie/Economics/staff/frainj/home.html mailto:fra...@tcd.ie mailto:fra...@gmail.com On 6 April

[R] Optimization max likelihood problem

2016-04-06 Thread Alaa Sindi
hello all, I am getting wrong estimates from this code. do you know what could be the problem. thanks x<- c(1.6, 1.7, 1.7, 1.7, 1.8, 1.8, 1.8, 1.8) y <- c( 6, 13, 18, 28, 52, 53, 61, 60) n <- c(59, 60, 62, 56, 63, 59, 62, 60) DF <- data.frame(x, y, n) # note: there is no need to have the ch

Re: [R] Descriptive Statistics of time series data

2016-04-06 Thread David L Carlson
For mean() and sd() you need to convert the data frame to a matrix (I'm guessing here since you did not show us the structure of your data). The min() and max() functions should work on the data frame just fine. If you have other columns in the data frame, extract the monthly columns first. > s

[R] Revolutions blog: March 2016 Roundup

2016-04-06 Thread David Smith
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog: http://blog.revolutionanalytics.com and every month I post a summary of articles from the previous month of particular interest to readers of r-help. And in case you

Re: [R] Optimization max likelihood problem

2016-04-06 Thread ProfJCNash
At the "solution" -- which nlm seems to find OK -- you have a very nasty scaling issue. exp(z) has value > 10^300. Better transform your problem somehow to avoid that. You are taking log of this except for adding 1, so effectively have just z. But you should look at it carefully and do a number of

Re: [R] Is this a bug in quantmod::OpCl?

2016-04-06 Thread Joshua Ulrich
On Tue, Apr 5, 2016 at 9:17 PM, James Hirschorn wrote: > > OpCl works on xts objects but not on quantmod.OHLC objects. Is this a bug? > Thanks for the minimal, reproducible example. Looks like a bug. There's no as.quantmod.OHLC.xts method, so the zoo method is dispatched. Calling Op() or Cl() o

Re: [R] Extracting windows from time series

2016-04-06 Thread Jim Lemon
Hi Matthias, It looks to me as though you could do this with a couple of loops: temps<-rnorm(400,14,0.05) ttind<-NULL for(ti in 1:(length(temps)-9)) { if(temps[ti]-temps[ti+9] >= 0.1 && max(temps[ti]-temps[ti+1:9]) > -0.05) ttind<-c(ttind,ti) } cat("\t\t",paste("Year",1:10,sep=""),"\n") for(ti

[R] identifying outliers

2016-04-06 Thread Thomas Subia via R-help
Thanks for writing this great piece of code. x = rnorm(100) boxplot(x) # you shouldn't see any outliers here although sometimes yow will # lets add some outliers intentionally x = c(21, 20, 25, x) # now 10, 15 and 20 are outliers myboxplot <- boxplot(x) # now you should see your three

Re: [R] Memory problem

2016-04-06 Thread Amelia Marsh
Dear Sir, Yes I am using the plyr and in the end I am writing the output to the data.frame. Earlier I had the problem of process time and hence I made some changes in the code and now I am fetching all the required inputs needed for valuation purpose using ddply, store the results in a data.fr