Re: [R] Seeking nomination for the Statistical Computing and Graphics Award

2018-10-18 Thread Yan, Jun
This is a reminder that the deadline is about 4 weeks ahead. We'd appreciate your spreading the word or nominating a candidate. Best regards. Jun Yan From: Yan, Jun Sent: Tuesday, August 21, 2018 6:39:46 AM To: r-help@R-project.org Subject: Seeking nomination f

[R] inconsistency in pbmclapply/mclapply....

2018-10-18 Thread akshay kulkarni
dear members, I am using pbmclapply in pbmcapply package, to do parallel processing in my R function. Below is the line that is malfunctioning: > LYG1b <- pbmclapply(lygh171, FUN = auto.arima, mc.cores = detectCores()) auto.arima is a function from the "forecast" pa

Re: [R] year and week to date - before 1/1 and after 12/31

2018-10-18 Thread Gabor Grothendieck
Replace the week in the date with week 2, say -- a week in which nothing will go wrong and then add or subtract the appropriate number of weeks. d <- c('2016 00 Sun', '2017 53 Sun', '2017 53 Mon') # test data as.Date(sub(" .. ", "02", d), "%Y %U %a") + 7 * (as.numeric(sub(" (..) ..."

Re: [R] year and week to date - before 1/1 and after 12/31

2018-10-18 Thread peter salzman
thanks Jeff and Gabor, appreciate you spending time on this, you both use similar ideas - add/subtract days/weeks from a day that exists combining all i learned i would go with something like this: ## step 1) find 1st sunday of year Y d11 <- as.Date( sprintf( "%04d 1 1"

Re: [R] Matching multiple search criteria (Unlisting a nested dataset, take 2)

2018-10-18 Thread Bert Gunter
All (especially Nathan): **Please feel free to ignore this post without response.** It just represents a bit of OCD-ness on my part that may or may not be of interest to anyone else. Purpose of this post: To give an alternative considerably simpler and considerably faster solution to the problem t

Re: [R] Matching multiple search criteria (Unlisting a nested dataset, take 2)

2018-10-18 Thread Bert Gunter
Sorry. Typo. The last line should be: ans$Result <- apply(ans,1,function(r)phrasewords[[r[1]]] %allin% tweets[[r[2]]]) -- Bert On Thu, Oct 18, 2018 at 7:04 PM Bert Gunter wrote: > All (especially Nathan): **Please feel free to ignore this post without > response.** It just represents a bit

Re: [R] Project in emacs + ess

2018-10-18 Thread Bert Gunter
Wrong list. This list is about R programming. You should address this to an emacs support list. Better yet, to an ess list . Here's one place you might start: https://www.r-bloggers.com/using-r-with-emacs-and-ess/ Other resources can be found by a web search on "R ess" . Cheers, Bert Bert Gun

Re: [R] Genuine relative paths with R

2018-10-18 Thread Olivier GIVAUDAN
Hi Katharina, Apologies for the late reply. Thank you for your proposal which was not made yet. That's actually a Shiny app which I am working on. The problem is that the data are confidential: except when I share the R codes and data (via a marvelous secured SharePoint system...), the data sh

Re: [R] Genuine relative paths with R

2018-10-18 Thread Olivier GIVAUDAN
Hi Michael, Apologies for the late reply. I am very grateful to all the R users who generously spent time on my problem and suggested operational solutions. It seems you didn't follow carefully this thread (which I can understand of course) as 2 operational solutions were already suggested and

Re: [R] Genuine relative paths with R

2018-10-18 Thread Olivier GIVAUDAN
Sorry, I forgot: The only regret I have is the title of this thread which is somehow misleading: a more correct one would be "How to set automatically / dynamically the working directory in R?" De : Olivier GIVAUDAN Envoyé : vendredi 19 octobre 2018 05:46 À : Mi

Re: [R] Project in emacs + ess

2018-10-18 Thread Martin Maechler
> Bert Gunter > on Thu, 18 Oct 2018 21:45:33 -0700 writes: > Wrong list. This list is about R programming. You should > address this to an emacs support list. Better yet, to an > ess list . Here's one place you might start: > https://www.r-bloggers.com/using-r-with-em