Re: [R] How to make a deep copy of a list?

2022-11-12 Thread Ivan Krylov
В Sat, 12 Nov 2022 20:04:57 + Giovanni Petris пишет: > The problem is that the C code modifies elements of the list so that, > after the R function returns, I end up with a modified version of the > list argument. I believe passing to the function a deep copy of the > list argument would solv

Re: [R] How to make a deep copy of a list?

2022-11-12 Thread Jeff Newmiller
Or modifying the C code to conform with the usual functional copy-on-write paradigm used throughout most of R. On November 12, 2022 12:04:57 PM PST, Giovanni Petris wrote: >Hello everybody, > >Does anybody know how to obtain a deep copy of a list? > >The context is the following. I am passing a

[R] How to make a deep copy of a list?

2022-11-12 Thread Giovanni Petris
Hello everybody, Does anybody know how to obtain a deep copy of a list? The context is the following. I am passing a list to a function which, in turn, passes it to compiled C code via .Call. The problem is that the C code modifies elements of the list so that, after the R function returns, I e

Re: [R] Logistic regression for large data

2022-11-12 Thread Ebert,Timothy Aaron
Hi George, I did not get an attachment. My first step would be to try simplifying things. Do all of these work? fit_1=glm(Base[,2]~Base[,1],family=binomial(link="logit")) fit_1=glm(Base[,2]~Base[,10],family=binomial(link="logit")) fit_1=glm(Base[,2]~Base[,11],family=binomial(link="logit")) f