Re: [R] High concurvity/ collinearity between time and temperature in GAM predicting deaths but low ACF. Does this matter?

2022-06-10 Thread Michael Dewey
Dear Jade It seems to me that there are several issues here. 1 - if you fit a separate parameter for each heaping day you efectively remove them from the model altogether. If they do carry meaningful information then that is undesirable. 2 - if the reason that there ae so many 15s is because

Re: [R] how to add comma to string vector?

2022-06-10 Thread Rasmus Liland
Hello ... raws <- c("field_1", "field_2", "field_3") paste0("['", paste0(raws, collapse="', '"), "']") rasmus@eightforty ~ % python Python 3.10.5 (main, Jun 6 2022, 18:49:26) [GCC 12.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> ['field_1', 'field_2'

[R] how to add comma to string vector?

2022-06-10 Thread Luigi Marongiu
Hello, I need to convert an R vector to a python array. Essentially, I got a vector of strings where each element must be enclosed in single quotes. The problem is that each closing single quote should contain a comma. What is the regex trick to do that? I tried with: ``` > (raws = c("field_1", "fi

Re: [R] High concurvity/ collinearity between time and temperature in GAM predicting deaths but low ACF. Does this matter?

2022-06-10 Thread jade.shodan--- via R-help
Hi Michael, I don't think my reply to your email came through to the list, so am resending (see below). Problems with subscription have now hopefully been resolved. Apologies if this is a double posting! On Thu, 9 Jun 2022 at 15:27, jade.sho...@googlemail.com wrote: > > Hi Michael, > > Thanks fo