Displaying 20 results from an estimated 190 matches similar to: "specify the number of decimal numbers"
2009 May 08
2
Plotting questions
Hi,
I am new to R. I have two questions about plotting in R:
1. How to plot several lines in a figure? Suppose I have several sets of
points (xi,yi), where xi and yi are equal-length vector. plot(x1,y1) will
give a line connecting these points. Another plot(x2,y2) will erase what
plot before and plot the new line. Can I have these lines all drawn in the
same figure?
2. How to open another figure
2009 Sep 04
1
How to call R routines in C++`
Hi,
I have some results generated in my C++ program. I 'd like to call some R
functions that can test if two sample sets are from different distribution,
like Kolmogorov-Smirnov and other more sophisticated Tests. I also like to
draw the histograms of the two sample sets in the same plot using R. As a
newbie to R, I greatly appreciate any suggestions on how to call R in C/C++
and
2008 Nov 11
3
FXTextField and number of digits after decimal point
Hello,
Here''s the context:
I read a number either pure integer or float with eventually up to 12
digits after the decimal point from a YAML file.
The number is injected into a FXTextField with the following code:
@value_sel = FXDataTarget.new(@value.to_s)
@value_value = FXTextField.new(@matrix_mem_value, 20, at value_sel,
:opts =>TEXTFIELD_NORMAL|JUSTIFY_RIGHT,
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.
-----------------------------------------------------------------
2013 Apr 11
2
Read the data from a text file and reshape the data
I have a data set for different time intervals. The data has three comment
lines before data for each time interval. For each time interval there are
500 data points. I want to change the dataset such that I have the following
format:
t1 t2 t3 ................
0.00208 0.00417 0.00625 .................
a1 a2 a3 ...................
2005 Nov 22
2
(PR#8337) formatC adds leading space -- on some Windoze
>>>>> "KevinW" == Kevin Wright <kwright68 at gmail.com>
>>>>> on Mon, 21 Nov 2005 18:13:36 +0100 (CET) writes:
KevinW> Full_Name: Kevin Wright
KevinW> Version: 2.2.0
KevinW> OS: Windows 2000
^^^^^^^
this must be part of the problem
KevinW> Submission from: (NULL) (170.54.58.4)
KevinW> Apologies if
2009 Jul 12
1
Splitting dataset for Tuning Parameter with Cross Validation
Hi,
My question might be a little general.
I have a number of values to select for the complexity parameters in some classifier, e.g. the C and gamma in SVM with RBF kernel. The selection is based on which values give the smallest cross validation error.
I wonder if the randomized splitting of the available dataset into folds is done only once for all those choices for the parameter values, or
2010 Nov 29
1
Troubles in plotting to a postscript file (not to png)
Dear R users,
I am trying to produce some plots in a postscript file, but I am
experiencing some issues. I open the device with
-----------------------------
setPS()
postscript (file='gs_mcmc_dust.ps',width=5*3,height=5*3,horizontal =
FALSE, paper = "special",family =
"ComputerModern",encoding="TeXtext.enc")#, onefile = FALSE
-----------------------------
2008 Feb 18
2
Number of digits of a value for problem 7.31 RFAQ
Hello dear R users!
I did not find a function which gives information about the number of
digits of a value shown by R.
Do you know one?
I need it to solve the problem (see RFAQ 7.31)that 0.2==0.2+0.1-0.1 FALSE
The solution suggested in RFAQ is to use isTRUE(all.equal(0.2,0.2+0.1-0.1))
But if I want to compare inequality:
0.2<=0.2 +0.1-0.1 TRUE
but 0.2<=0.2 +0.1-0.1 FALSE
bad!
but in
2004 Dec 30
1
number format
This mailing list truly is amazing.
Thank you so much for all the help!
I feel a little strange asking something that "simple" again, but I
wasn't able to find it in the help...
Is there a way to tell R how to display numbers (double)? How many
numbers after the decimal point, etc...
Thanks again, folks and have a nice New Years Eve!
Dax
2000 Mar 03
1
anova question
I have a probably very naive question about the R anova/aov functions:
I've found in several text books with descriptions of anova procedures
that, in nested anova (specifying the model "X~A/B", B being a factor
specifying treatments, and A groups of samples within each treatment),
the mean square for "among treatments" is divided by the mean square
"within treatment
2010 Nov 18
6
Doveadm
How doveadm purge a email ?
It's search using the index or scan every directory and open the email to
match the search criteria ?
2008 Jun 18
3
Number of digits in paste funciton
Hi!
Does anyone know hot to set number of digits to be printed in function
'paste'?
Tine Mla?
2019 May 30
1
Possible bug in formatC
I do not know if this is a bug or a case of improper documentation. The
documentation for formatC() implies that the difference between the options
format="f" and format="g" is that with "g", scientific format is sometimes
used. There is another difference between them that is not mentioned in the
documentation. drop0trailing=FALSE is ignored when format is set to
2000 Nov 14
3
2 plots 1 figure
How do you obtain two plots on the same figure?
for example
plot(rnorm(100)
plot(rnorm(100),type="l")
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To:
2011 Sep 12
6
Rv: Re: Cosinor Analysis
--- El lun, 12/9/11, Cristalina <pa100cia77@yahoo.es> escribió:
De: Cristalina <pa100cia77@yahoo.es>
Asunto: Re: [R-es] Cosinor Analysis
Para: "Carlos Ortega" <coforfe@gmail.com>
Fecha: lunes, 12 de septiembre, 2011 08:43
Hola,
Carlos, muchas gracias.
El método empleado en http://tolstoy.newcastle.edu.au/R/e6/help/09/01/0626.html (el url que se referencia
1998 Apr 27
1
R-beta: vectors in dataframe?
I have a file:
x y z
0.025 0.025 1.65775
0.025 0.050 1.62602
0.025 0.075 1.63683
0.025 0.100 1.91847
0.025 0.125 2.00913
0.025 0.150 1.82222
0.025 0.175 1.70901
0.025 0.200 1.39759
0.025 0.225 1.39089
0.025 0.250 1.04762
If I read the file like this:
data<-read.table("file.dat")
How do I access the vectors x,y,z that are inside the dataframe data? I
studied Venables and
2013 Dec 02
1
pesky \usage-warnings with R CMD check
I?m in the process of preparing a package for CRAN.
The package is called ?exportR? and since it really just consists of one function, I found it natural to call it ?exportR? too.
The function returns a function that does the actual job, but it is set up to work in different ways, depending on the arguments given to its creator. In short:
library( exportR )
exporter <- exportR( the, arguments
2006 Feb 23
3
Decimal comma instead of decimal point (i18n issue)
Hello,
What is the easiest way which enables usage of decimal comma "," instead
of decimal point (".") . I would like to force all RoR views to display
float numbers with comma instead of decimal point and also to allow
insertion of float numbers with comma in forms.
Thanks in advance,
Karel
--
Posted via http://www.ruby-forum.com/.
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/.