Displaying 20 results from an estimated 9000 matches similar to: "Decimal places"
2012 Oct 26
2
Number of decimal places
When estimating values ??each determined similarly, and in which get to them
by algebraic operations in some cases, are rounded with 0 decimal places and
in other cases with 2 or 3 decimal places. What is happening?
Thank you.
--
View this message in context: http://r.789695.n4.nabble.com/Number-of-decimal-places-tp4647549.html
Sent from the R help mailing list archive at Nabble.com.
2010 Aug 16
1
Specify decimal places for parameters in BUGS output
Hi All:
I had a basic question to ask. I am running R2WinBUGS so that I could
automate the running of my model using 1000 simulated datasets. Below is the
code I am using. The only problem I am having is the bugs output that comes
out shows my parameters as nos with 1 decimal place after. I would want to
have the parameters with 5 places after decimal. How would I specify that in
my code for
2011 Jan 14
2
read in data, maintain decimal places
Good day, All,
Is there any way to maintain the number of decimal places in the type of situation below?
I would like to maintain the number of decimal places in 0.667, despite the fact that its column-mates have a fourth decimal place.
Thank you for your time.
Jim
dat.txt contents:
MARKER ALLELES FREQ1 RSQR EFFECT2 STDERR CHISQ PVALUE
rs6599753 C,T
2013 May 21
1
How many decimal places of information does R actually use in computation?
Dear R-users:
Hi, I read here (
http://stackoverflow.com/questions/2287616/controlling-digits-in-r) that R
is only accurate up to the 15th decimal place, despite the fact that if you
choose to display more decimal places, it will. I wonder if R uses the
information beyond the 15th decimal place in actual computation. Thanks!
Best,
Xiao
[[alternative HTML version deleted]]
2006 Jun 30
4
always show 2 decimal places
Hi,
I have a float that often looks like somthing like 2003.2 in my
controller (1 decimal place)
Is there a way to always show it to 2 decimal places eg 2003.20 ?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Feb 13
2
R-help, specifying the places to decimal
Hello - R-experts,
Is there any way with which we can specify the number after
decimal point to take. Like I have a situation where
the values are comming 0.160325923 but I only want
4 place to decimal say 0.1603. Is there any way for that.
I am no expert in R- and this may sound simple to many.sorry
Thanks for any help.
With Regards
Subhabrata
2006 Nov 12
1
How to increase decimal places
Hello everyone,
does anybody know how to increase the decimal places that R uses to calculate something.
I think that in default R uses 6 decimal places but I need 12.
Thank you very much!
Best regards,
Maja!
--
2006 Feb 12
1
floor and ceiling can't handle more than 15 decimal places (PR#8590)
Full_Name: Ben Phalan
Version: 2.2.1
OS: Win XP
Submission from: (NULL) (131.111.111.231)
I have noticed that floor returns the wrong number when there are more than 15
decimal places:
> floor(6.999999999999999)
[1] 6
> floor(6.9999999999999999)
[1] 7
There is a similar problem with ceiling, so this may apply to all/most rounding
functions?
> ceiling (2.000000000000001)
[1] 3
>
2011 Jan 26
2
write.table -- maintain decimal places
Hello, All,
How can I maintain the decimal places when using write.table()?
Jim
e.g.
df:
EFFECT2 PVALUE
1 0.023 0.88080
2 -0.260 0.08641
3 -0.114 0.45200
write.table(df,file='df.txt',quote=F,sep='\t',row.names=F)
df.txt:
EFFECT2 PVALUE
0.023 0.8808
-0.26 0.08641
-0.114 0.452
[[alternative HTML version deleted]]
2007 Sep 16
8
Rounding up to two decimal places
Hi there
I am going to calculate VAT at one of my websites, and UK VAT is 17.5
%.
So the question is how to round up some value to two decimal points?
I often get values like 6,991..
In php I was using round function
round($price, 2)
is in ruby something similat to PHP''s round function where I could
specify number of decimal places ?
P.
2009 Jun 11
2
How to force R to print 2 decimal places in column of a data.frame?
How to force R to print 2 decimal places in column of a data.frame? I tried to do so:
x = inp(format(rounf(inp$Tamanho, 2), nsmall = 2),)
where "INP" is data.frame and "Size" is the name of column. But has error:
Error in eval.with.vis(expr, envir, enclos) :
could not find function "inp"
Lesandro
Veja quais s?o os assuntos do momento no Yahoo! +Buscados
2013 Mar 07
1
How to export data with defined decimal places
Hi all mailing listers,
I want to export data with specified precision into .txt file. How can I
make it? See below
sprintf("%.10f",pi)
[1] "3.1415926536"
when carry out write.matrix(pi,"pi.txt"), 3.141592653589793115998 in pi.txt
file not with 10 decimal places like using sprintf("%.10f",pi)
Thanks
Marino
[[alternative HTML version deleted]]
2012 Oct 22
5
Help plz to fix it
I have an array of probabilities....it is p. So if user types x=1 then
probability is p1=1/10.
If user types x=2 it means that p2= p1+p2
if user types x=3 it means that p3=p1+p2+p3....and so on.
So i created a code..... but it doesnt work properly. Help me plz to fix it)
Thank u in advance.
psidp=function(x){
p<-(1/10 2/5 2/5 2/5 2/5 1/10 1/10 1/10 1/10 1/10)
i==0;
if (x!=0){
for
2018 May 07
0
read.csv and Decimal places
The stored numbers are correct. They are rounded on printing.
print(RevFCast, digits=17)
See
?options
And scroll down to digits.
On Mon, May 7, 2018 at 11:50 Bill Poling <Bill.Poling at zelis.com> wrote:
> Hi, Novice UsR here.
>
> I have a csv file that contains 13 columns of numeric data that have
> decimal places (for the most part).
>
> After reading in the file
>
2012 Jul 07
5
number of decimal places in a number?
Dear R users,
I need a function that gets a number and returns its number of actual decimal places.
For example f(3.14) should return 2, f(3.142) should return 3, f(3.1400) should also return 2
and so on. Is such function already available in R? If not, could you give me a hint how to achieve that?
Many thanks in advance.
-----------------------------------------------------------------
2018 May 07
1
read.csv and Decimal places
... and see also ?print.data.frame , the "digits" argument.
See also ?str
It might be worth your while spending time with an R tutorial or two that
covers such topics, i.e. distinguishing between an object and various (S3)
methods that "represent" it, such as print(), summary(), plot() etc.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep
2018 May 07
2
read.csv and Decimal places
Hi, Novice UsR here.
I have a csv file that contains 13 columns of numeric data that have decimal places (for the most part).
After reading in the file
RevFCast = read.csv("RevAnalysisNov2016_April2018.csv", header=TRUE, dec = ".", stringsAsFactors=FALSE)
and viewing the data
View(RevFCast)
Some of the fields came in with the correct decimals and some not?
The view in R:
2007 Sep 06
2
larger decimal numbers get rounded ....
Hi,
I am sure there is a reason but ...... why larger decimal numbers get rounded to the nearest integer?
Example:
a <- 3308000.5
a
[1] 3308001
I would like my numbers to be decimals .... since they do represent coordinates and i don't want them rounded .... how can i keep them as they are?
Thanks,
Monica
_________________________________________________________________
2010 Nov 10
2
Decimal places in a function output
An embedded and charset-unspecified text was scrubbed...
Name: n?o dispon?vel
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101110/9e098a24/attachment.pl>
2006 May 24
2
Decimal places
B??dnie zakodowany tekst zosta? usuni?ty...
Plik: nie znany
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060524/ba180973/attachment.pl