Re: [R] Obtaining values of estimates from a regression; How do I get values from a list?

2019-02-21 Thread Eric Berger
You have some choices fitchange$coefficients[2] zz$coefficients[2,1] Note that class(zz$coefficients) shows that it is a matrix. HTH, Eric On Fri, Feb 22, 2019 at 9:45 AM Sorkin, John wrote: > I am trying to obtain the coefficients from a regression (performed using > lm). I would like to

[R] Obtaining values of estimates from a regression; How do I get values from a list?

2019-02-21 Thread Sorkin, John
I am trying to obtain the coefficients from a regression (performed using lm). I would like to get the value for the slope (i.e. estimate) for pre from the following regression: fitchange <- lm(post-pre~pre,data=mydata2) I have tried the following without any success: zz <-

Re: [R] data.table: reference column in "i"-part by column name in string object

2019-02-21 Thread Pascal A. Niklaus
On 21.02.19 20:43, Rui Barradas wrote: Hello, I don't understand the question. Like this? xx <- "B" yy <- "D" a[xx, on = v] a[c(xx, yy), on = v] Note that .(xx, yy) doesn't work. It outputs something else. Could you give an example of more complicated expressions you have doubts with?

Re: [R] data.table: reference column in "i"-part by column name in string object

2019-02-21 Thread Rui Barradas
Hello, I don't understand the question. Like this? xx <- "B" yy <- "D" a[xx, on = v] a[c(xx, yy), on = v] Note that .(xx, yy) doesn't work. It outputs something else. Could you give an example of more complicated expressions you have doubts with? Hope this helps, Rui Barradas Às 14:10

Re: [R] R Software

2019-02-21 Thread Jeff Newmiller
IANAL (nor an R Core developer) but I think GDPR applies to organizations, particularly ones that handle personally-identifiable data, presumably through the use of software. As R does not by design collect such data without being given explicit instructions by the user to do so and where to

Re: [R] reduce and intersect question (maybe)?

2019-02-21 Thread Andras Farkas via R-help
Works well! Thanks! Andras  On Thursday, February 21, 2019, 8:47:51 AM EST, Jeff Newmiller wrote: Use ?merge instead of intersect. On February 21, 2019 5:22:46 AM PST, Andras Farkas via R-help wrote: >Hello All, > >wonder if you have a suggestion for the following: > >we have

Re: [R] R Software

2019-02-21 Thread Evan Lindenberger
Hello! Thanks for getting back to me, I just need to ask these question while reviewing a software for the school, but just to clarify, the R Foundation itself does not need to abide by GDPR? Also, the WISP mentioned would be how the R Foundation handles internal information regarding the

[R] data.table: reference column in "i"-part by column name in string object

2019-02-21 Thread Pascal A. Niklaus
I am converting data.frame-based code to data.table, for performance reasons. Is there a way to refer to columns using expressions in the "i"-part? Here is an example: a <- data.table(x=rep(LETTERS[1:10],each=2), y=1:20) v <- "x" For the j-part, I can access the column whose name is stored

Re: [R] R Software

2019-02-21 Thread Bert Gunter
Please stop these silly posts. R is open source software, and its open source licensing requirements are explained on its website and referenced links. As stated there, it comes with NO guarantees. The R Foundation is *not* a company. Bert Gunter "The trouble with having an open mind is that

Re: [R] reduce and intersect question (maybe)?

2019-02-21 Thread Jeff Newmiller
Use ?merge instead of intersect. On February 21, 2019 5:22:46 AM PST, Andras Farkas via R-help wrote: >Hello All, > >wonder if you have a suggestion for the following: > >we have >a<-data.frame(ID=c(1,2,3,4,5,6,7),date=as.POSIXct(seq(as.Date('2011-01-01'),as.Date('2011-01-07'),by >=

[R] reduce and intersect question (maybe)?

2019-02-21 Thread Andras Farkas via R-help
Hello All, wonder if you have a suggestion for the following: we have a<-data.frame(ID=c(1,2,3,4,5,6,7),date=as.POSIXct(seq(as.Date('2011-01-01'),as.Date('2011-01-07'),by = 1),format='%m/%d/%Y %H:%M'),z=rnorm(7,1,1))

Re: [R] particle count probability

2019-02-21 Thread PIKAL Petr
OK. I got it. Thanks. Petr > -Original Message- > From: Jim Lemon > Sent: Thursday, February 21, 2019 11:36 AM > To: PIKAL Petr > Cc: Rolf Turner ; r-help@r-project.org > Subject: Re: [R] particle count probability > > Hi Petr, > My second message was to show that if you take the

Re: [R] particle count probability

2019-02-21 Thread Jim Lemon
Hi Petr, My second message was to show that if you take the limiting cases of "just inside" and "just outside" - which should have been: just inside the field: R0 = sqrt((x1+R1-x0)^2 + (y1+R1-y0)^2) just outside the field: R0 = sqrt((x2-R1-x0)^2 + (y2-R1-y0)^2) the two differences are equal

Re: [R] particle count probability

2019-02-21 Thread PIKAL Petr
Hallo Thanks all for valuable suggestions. As always, people here are generous and clever. I will try to think through all your suggestions, including recommended literature. Jim. Standard practice in particle measurement is to count (and mesure) only particles which are fully inside viewing