Re: [R] [External] result of mean(v1, v2, v3) of three real number not the same as sum(v1, v2, v3)/3

2022-05-12 Thread Bert Gunter
I believe you are still misunderstanding. Inline comments below. On Thu, May 12, 2022 at 2:02 PM Sorkin, John wrote: > > I thank Richard Heiberger, Marc Schwartz, Eric Berger, Ivan Krylov, and David > Stevens for answering my question regarding different results obtained from > mean(v1,v2,v3))

Re: [R] [External] result of mean(v1, v2, v3) of three real number not the same as sum(v1, v2, v3)/3

2022-05-12 Thread Jeff Newmiller
R is at heart used for processing vectors of data. I find the flexibility of sum to be more disturbing than the constraints of mean. On May 12, 2022 1:55:00 PM PDT, "Sorkin, John" wrote: >I thank Richard Heiberger, Marc Schwartz, Eric Berger, Ivan Krylov, and David >Stevens for answering my qu

Re: [R] [External] result of mean(v1, v2, v3) of three real number not the same as sum(v1, v2, v3)/3

2022-05-12 Thread Sorkin, John
I thank Richard Heiberger, Marc Schwartz, Eric Berger, Ivan Krylov, and David Stevens for answering my question regarding different results obtained from mean(v1,v2,v3)) and sum(v1,v2,v3)/3 I believe the explanations points out a possibly dangerous aspect of the sum vs mean functions. Mean may

Re: [R] result of mean(v1, v2, v3) of three real number not the same as sum(v1, v2, v3)/3

2022-05-12 Thread Ivan Krylov
On Thu, 12 May 2022 19:31:51 + "Sorkin, John" wrote: > > mean(mlagFZ1,mlagFZ2,mlagFZ3) > [1] -0.3326792 match.call(mean.default, quote(mean(mlagFZ1, mlagFZ2, mlagFZ3))) # mean(x = mlagFZ1, trim = mlagFZ2, na.rm = mlagFZ3) mean() takes a vector to compute a mean of and additional arguments

Re: [R] Need help with merging .RDS data frame yield value with district shapefile corresponding GDMID and plot the graph

2022-05-12 Thread Ranjeet Kumar Jha
Hi David, As suggested earlier, providing the link of a folder contains all files. https://drive.google.com/drive/folders/1dNmGTI8_c9PK1QqmfIjnpbyzuiCXgxFC?msclkid=4816425dd04111ec912cf8b4175aa93c Thanks, Ranjeet On Wed, May 11, 2022 at 9:35 PM David Winsemius wrote: > > On 5/9/22 10:01, Ranj

[R] pcalg library : names of the variables ?

2022-05-12 Thread varin sacha via R-help
Dear R-experts, Here below my R code working but I would like to get the names of the variables to appear on the graph instead of 1 ; 2 ; 3 and 4. Is it possible ? I have tried something with colnames(x) but I get an error message. Many thanks for your help. # librar