Re: [R] Forecasting methods in R

2018-07-12 Thread Bert Gunter
1. https://cran.r-project.org/web/views/TimeSeries.html 2. Google! 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 Thu, Jul 12, 2018 at 6:46 PM

Re: [R] Forecasting methods in R

2018-07-12 Thread Alex Zarebski
Hey, You should probably check out the =forecast= package which is pretty close to a default solution as you'll find. https://cran.r-project.org/web/packages/forecast/ If you google around this you should find some useful stuff. Cheers, Alex On Fri, Jul 13, 2018 at 12:15 PM Amitabh Kumar via R

[R] Forecasting methods in R

2018-07-12 Thread Amitabh Kumar via R-help
Hi, I am learning R for forecasting. Is there any document where I can learn how to apply R in forecasting time series using Holt-Winters method and ARIMA modelling? Thanks,Amitabh [[alternative HTML version deleted]] __ R-help@r-project.org ma

Re: [R] Simplify the loop over the 3rd dimension of a 3D array

2018-07-12 Thread David Winsemius
> On Jul 12, 2018, at 9:40 AM, Duncan Murdoch wrote: > > On 12/07/2018 11:34 AM, Marine Regis wrote: >> Hello all, >> Is there an efficient way to simplify the loop over the 3rd dimension of a >> 3D array ? I want to keep the loop over the "time". Here is the code: >> set.seed(12345) >> ind <-

Re: [R] Simplify the loop over the 3rd dimension of a 3D array

2018-07-12 Thread Duncan Murdoch
On 12/07/2018 11:34 AM, Marine Regis wrote: Hello all, Is there an efficient way to simplify the loop over the 3rd dimension of a 3D array ? I want to keep the loop over the "time". Here is the code: set.seed(12345) ind <- 10 time_seq <- seq(0, 8, 1) col_array <- c(paste("time_", time_seq, s

Re: [R] Help with replace()

2018-07-12 Thread Bill Poling
Yes, that's got it! (20 years from now I'll have it all figured out UGH!), lol! Thank you David Min. 1st Qu. Median Mean 3rd Qu. Max. "1977-07-16" "1984-03-13" "1990-08-16" "1990-12-28" "1997-07-29" "2002-12-31" WHP From: David Winsemius [mailto:dwinsem...@com

[R] Simplify the loop over the 3rd dimension of a 3D array

2018-07-12 Thread Marine Regis
Hello all, Is there an efficient way to simplify the loop over the 3rd dimension of a 3D array ? I want to keep the loop over the "time". Here is the code: set.seed(12345) ind <- 10 time_seq <- seq(0, 8, 1) col_array <- c(paste("time_", time_seq, sep="")) tab <- array(0, dim=c(length(time_seq)

Re: [R] Help with replace()

2018-07-12 Thread David Winsemius
> On Jul 12, 2018, at 8:17 AM, Bill Poling wrote: > > > R version 3.5.1 (2018-07-02) -- "Feather Spray" > Copyright (C) 2018 The R Foundation for Statistical Computing > Platform: x86_64-w64-mingw32/x64 (64-bit) > > Hi. > > I have data set with day month year integers. I am creating a date c

Re: [R] Generate N random numbers with a given probability and condition

2018-07-12 Thread David Winsemius
> On Jul 12, 2018, at 12:44 AM, Göran Broström wrote: > > "Acceptance–Rejection Sampling from the Conditional Distribution of > Independent Discrete Random Variables, given their Sum", Statistics 34, pages > 247-257 Dear Go:ran; I'm fully retired with no subscriber academic library that I c

[R] Help with replace()

2018-07-12 Thread Bill Poling
R version 3.5.1 (2018-07-02) -- "Feather Spray" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) Hi. I have data set with day month year integers. I am creating a date column from those using lubridate. a hundred or so rows failed to pars

Re: [R] Generate N random numbers with a given probability and condition

2018-07-12 Thread Göran Broström
On 2018-07-05 00:21, Nelly Reduan wrote: Dear all, I would like to generate N random numbers with a given probability and condition but I'm not sure how to do this. For example, I have N = 20 and the vector from which to choose is seq(0, 10, 1). I have tested: x <- sample(seq(0, 10, 1), 20