[R] Regex Split?

2023-05-04 Thread Leonard Mada via R-help
Dear R-Users, I tried the following 3 Regex expressions in R 4.3: strsplit("a bc,def, adef ,,gh", " |(?=,)|(?<=,)(?![ ])", perl=T) # "a"    "bc"   ","    "def"  ","    "" "adef" ","    "," "gh" strsplit("a bc,def, adef ,,gh", " |(?- the first one could also return "", "," (but probably not;

Re: [R] question about update()

2023-05-04 Thread Adelchi Azzalini via R-help
Hi, Berwin, good to hear from you, and thanks for the detailed comments and suggestion. Actually, my current experimental code works in the way that you suggest, calling directly lm.fit and glm.fit. What I am trying to develop is an “improved” version of the code for distribution to other

Re: [R-es] Error al actualizar R 4.3.0

2023-05-04 Thread LeugimSan via R-help-es
Hola Sebasti�n. Has probado a especificarle otro mirror del CRAN? Por ejemplo: local({r <- getOption("repos") r["CRAN"] <- "https://ftp.cixug.es/CRAN/; options(repos=r)}) Y luego hacer el update... Un saludo, Miguel. De: R-help-es

[R-es] Error al actualizar R 4.3.0

2023-05-04 Thread Sebastián Kruk Gencarelli
Hola usuarios-R. El lunes pasado en mi máquina Windows 10 el R 4.2.3 a 4.3.0. Una vez instalado dejó de funcionar la actualización. Me aparece lo siguiente: >update.packages()Warning: unable to access index for repository https://cloud.r-project.org/src/contrib:  no fue posible abrir la URL

Re: [R] question about update()

2023-05-04 Thread Berwin A Turlach
G'day Adelchi, hope all is well with you. On Thu, 4 May 2023 10:34:00 +0200 Adelchi Azzalini via R-help wrote: > Thanks, Duncan. What you indicate is surely the ideal route. > Unfortunately, in my case this is not feasible, because the > construction of xf and the update call are within an

Re: [R] question about update()

2023-05-04 Thread Duncan Murdoch
On 04/05/2023 4:34 a.m., Adelchi Azzalini wrote: On 4 May 2023, at 10:26, Duncan Murdoch wrote: On 04/05/2023 4:05 a.m., Adelchi Azzalini via R-help wrote: Hi. There must be something about the use of update() which I do not grasp, as the next exercise indicates. Suppose that obj is an

Re: [R] question about update()

2023-05-04 Thread Adelchi Azzalini via R-help
> On 4 May 2023, at 10:26, Duncan Murdoch wrote: > > On 04/05/2023 4:05 a.m., Adelchi Azzalini via R-help wrote: >> Hi. There must be something about the use of update() which I do not grasp, >> as the next exercise indicates. >> Suppose that obj is an object returned by a call to lm() or

[R] question about update()

2023-05-04 Thread Adelchi Azzalini via R-help
Hi. There must be something about the use of update() which I do not grasp, as the next exercise indicates. Suppose that obj is an object returned by a call to lm() or glm(). Next, a new variable xf is constructed using the same dataframe used for producing obj. Then obj$data <- cbind(obj$data,