Re: [R] Why does the print method fail for very small numbers?

2022-02-17 Thread Jeff Newmiller
In this case, that is too little too late. See the other messages in this thread. On February 17, 2022 4:04:53 PM PST, Andrew Simmons wrote: >It should also be noted that format(x, digits = 17) instead of >as.character(x) won't lose any accuracy. > >On Thu, Feb 17, 2022, 17:41 Marius Hofert >wr

Re: [R] Why does the print method fail for very small numbers?

2022-02-17 Thread Andrew Simmons
It should also be noted that format(x, digits = 17) instead of as.character(x) won't lose any accuracy. On Thu, Feb 17, 2022, 17:41 Marius Hofert wrote: > Dear expeRts, > > I'm familiar with IEEE 754. Is there an easy way to explain why even > just printing of small numbers fails? > > 1e-317 # 1

Re: [R] Problem with data distribution

2022-02-17 Thread Ebert,Timothy Aaron
Maybe what you want is to recode your data differently. One data set has bug versus no bug. What is the probability of having one or more bugs? The other data set has bugs only. Given that I have bugs how many will I get? Tim -Original Message- From: R-help On Behalf Of Neha gupta Sent:

[R] Why does the print method fail for very small numbers?

2022-02-17 Thread Marius Hofert
Dear expeRts, I'm familiar with IEEE 754. Is there an easy way to explain why even just printing of small numbers fails? 1e-317 # 1e-317 => fine 1e-318 # 9.87e-319 => gets tricky; seems to call print() => as.character() => format() => paste() 1e-318 == 9.87e-319 # TRUE 2.48e-324 # prints

Re: [R] Problem with data distribution

2022-02-17 Thread Neha gupta
:) :) On Thu, Feb 17, 2022 at 10:37 PM Bert Gunter wrote: > imo, with such simple data, a plot is mere chartjunk. A simple table(= > the distribution) would suffice and be more informative: > > > table(bug) ## bug is a vector. No data frame is needed > > 0 1 23 4 5 7 ## bug c

Re: [R] Problem with data distribution

2022-02-17 Thread Neha gupta
Ebert and Rui, thank you for providing the tips (in fact, for providing the answer I needed). Yes, you are right that boxplot of all zero values will not make sense. Maybe histogram will work. I am providing a few details of my data here and the context of the question I asked. My data is about

Re: [R] Problem with data distribution

2022-02-17 Thread Neha gupta
Dear John, thanks a lot for the detailed answer. Yes, I am not an expert in R language and when a problem comes in, I google it or post it on these forums. (I have just a little bit experience of ML in R). On Thu, Feb 17, 2022 at 8:21 PM John Fox wrote: > Dear Nega gupta, > > On 2022-02-17 1:

Re: [R] Problem with data distribution

2022-02-17 Thread John Fox
Dear Nega gupta, In the last point, I meant to say, "Finally, it's better to post to the list in plain-text email, rather than html (as the posting guide suggests)." (I accidentally inserted a "not" in this sentence.) Sorry, John On 2022-02-17 2:21 p.m., John Fox wrote: Dear Nega gupta, O

Re: [R] Problem with data distribution

2022-02-17 Thread John Fox
Dear Neha gupta, I hope that I'm not overstepping my role when I say that googling solutions to specific problems isn't an inefficient way to learn a programming language, and will probably waste your time in the long run. There are many good introductions to R. Best, John On 2022-02-17 2:

Re: [R] Problem with data distribution

2022-02-17 Thread Rui Barradas
Hello, In your original post you read the same file "synapse.arff" twice, apparently to filter each of them by its own criterion. You don't need to do that, read once and filter that one by different criteria. As for the data as posted, I have read it in with the following code: x <- " 0 1

Re: [R] Problem with data distribution

2022-02-17 Thread Neha gupta
That is all the code I have. How can I provide a reproducible code ? How can I save this result? On Thu, Feb 17, 2022 at 8:00 PM Ebert,Timothy Aaron wrote: > You pipe the filter but do not save the result. A reproducible example > might help. > Tim > > -Original Message- > From: R-help

Re: [R] Problem with data distribution

2022-02-17 Thread Ebert,Timothy Aaron
You pipe the filter but do not save the result. A reproducible example might help. Tim -Original Message- From: R-help On Behalf Of Neha gupta Sent: Thursday, February 17, 2022 1:55 PM To: r-help mailing list Subject: [R] Problem with data distribution [External Email] Hello everyone

Re: [R] gstat installation problem

2022-02-17 Thread Poizot Emmanuel
Dear all, thanks for advise. I succedded with version 2.0.0 of gstat. :) regards Le 17/02/2022 à 13:34, Ivan Krylov a écrit : On Wed, 16 Feb 2022 15:20:48 +0100 Poizot Emmanuel wrote: I tried to install gstat package via install.packages('gstat') command on R (version 3.5.2) and my OS is Debi

Re: [R] gstat installation problem

2022-02-17 Thread Ivan Krylov
On Wed, 16 Feb 2022 15:20:48 +0100 Poizot Emmanuel wrote: > I tried to install gstat package via install.packages('gstat') > command on R (version 3.5.2) and my OS is Debian buster. > mtrx.c: In function ‘CHfactor’: > mtrx.c:391:74: error: ‘FC_LEN_T’ undeclared (first use in this > function); d