Displaying 20 results from an estimated 1000 matches similar to: "Different decimal places in a matrix"
2011 Dec 15
4
Undocumented functions
Hi!
I am building a package. This package will not submitted to CRAN.
I write the help files for the most important functions of my package, I
cannot write it for all functions. This may sounds strange, but so there!
I know that all user-level functions should be documented, so I have to
move my undocumented functions to a non-user-level. It's right?
To move my functions to a
2010 Jul 27
2
Sum list elements
Hi!
I have a list of 24 elements, all of the same type (dataframe, for example).
I am looking for an alternative to mylist[[1]] + mylist[[2]] + ... +
mylist[[24]] to obtain the sum.
Anyone can help me?
Thanks in advance.
Nicola S.
[[alternative HTML version deleted]]
2010 Sep 28
2
Table with different digit number
Hi!
I have a table representing both absolute and relative frequency, for
example (code to get example data under the signature):
Italy Germany
absolute 100 105
relative 40.51 41.18
How can I print a different number of decimal digits? I try to transform to
as.character, but cells result aligned to left and I don't like this
solution. At the
2010 Nov 02
5
density() function: differences with S-PLUS
Hello!
Someone know what are the difference between R and S-PLUS in the density()
function?
For example, I would like to reply this simple S-PLUS code in R, but I don't
understand which parameter I should modify to get the same results.
S-PLUS CODE:
density(1:1000, width = 4)
R-CODE:
density(1:1000, bw = 4, window = "g", n = 50, cut = 0.75)
I obtain the same x values, but
2010 Mar 25
1
Read SAS data
Hi!
I need to import in R some SAS dataset (sas7bdat). I found two functions to
do it:
"read.ssd" from the package "foreign" and "sas.get" from "Hmisc".
df = read.ssd(libname = path2data, sectionnames = "sasSmallDataset",
tmpXport = path2data, tmpProgLoc = path2data, sascmd = path2sas)
sas.get(libraryName = path2data, member =
2011 Oct 18
1
avoid s3 methods
Hello everybody.
My issue arise when I build a package with my functions. This package is for
personal purposes only and it will not submitted to CRAN.
Anyway, this may be an opportunity for myself to clear the S3 methods
concept. I read the R manual and some books about R programming but they are
usually S4 oriented.
I call a function plot.days(). When I check the package I obtain some
2011 Nov 22
1
Compile R package under Windows
Hi.
I need to compile an R package under Windows, to get a zip file.
I can't used the web services, because it is avalaible only for the current
version of R while I need of a package compiled with R 2.13.1.
The package contain C code that requires the GSL C library.
In your experience, what is the best way to compile an R library? I read
the R manuals, now I need some tricks with
2010 Nov 03
1
smooth: differences between R and S-PLUS
Hi!
I am studying differences between R and S-PLUS smooth() functions. I know
from the help that they worked differently, so I ask:
- exist a package that permit to have the same results?
- alternatively, someone know how can I obtain the same results in R, using
a self made script?
I know that S-PLUS use the 4(3RSR)2H running median smoothing and I try to
implement it with the code below. I
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/.
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]]
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 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 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
>
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!
--
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]]
2012 Nov 18
1
Decimal places
I am a beginner in programmin in general and R specifically.
I would like to generate a set of random numbers in a normal distribution
but to limit the decimal places in these numbers to only 2.
I have been using x1 <- runif(1,0,1) to generate my numbers.
Can I add something to it to enable me to only get results rounded off to 6
decimal places?
--
View this message in context:
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]]
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
2007 Nov 12
2
specifying decimal places
hie
how do I specify the number of decuimal places for my calulations
thanks
__________________________________________________
[[alternative HTML version deleted]]
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