Displaying 20 results from an estimated 600 matches similar to: "syntaxe problem"
2012 Dec 04
3
monte carlo simulation on R
Hello,
How can I make a monte carlo simulation on R?
Regards
Adel
--
PhD candidate in Computer Science
Address
3 avenue lamine, cité ezzahra, Sousse 4000
Tunisia
tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
fax: +216 71 391 166
[[alternative HTML version deleted]]
2011 Jan 19
1
printing big real values
Hello,
I have a file with very big values. I want to display the real values with
classic ways (without exposant)
> summary(a[,1]);
Min. 1st Qu. Median Mean 3rd Qu. Max.
1.198e+09 1.199e+09 1.200e+09 1.200e+09 1.201e+09 1.202e+09
Can you help please?
Regards
Adel
--
PhD candidate in Computer Science
Address
3 avenue lamine, cité ezzahra, Sousse 4000
Tunisia
tel:
2010 Aug 21
4
basic hist() question
Hi list
I loaded the content of a file dureetasks.txt to variable a. This file
contains an interger per line.
when I print a vector, it displays correctly.
however, when I try to print the histogram, I get this error message
> a=read.table("dureetasks.txt")
> hist(a)
Error in hist.default(a) : 'x' must be numeric
Can you help please?
regards
--
PhD candidate in
2011 Dec 13
1
generate a number using exponential low
Deal list
> I want to generate a random number in an interval using exponential low
> I know how to make that simply using uniform low
> x1 <- runif(1, 5.0, 7.5)
> this will generate a number between 5 et 7.5 but with uniform low.
> Could you help pease.?
> Regards
>
> --
> PhD candidate in Computer Science
> Address
> 3 avenue lamine, cité ezzahra, Sousse 4000
2011 Sep 14
1
draw points in R
Hello list
I have this file
0 121289479 25
0 212599129 1
0 285254098 21
0 444889848 45
0 469197123 30
0 640007403 82
0 718215617 8
0 758534043 56
0 799706577 4
0 814441385 93
0 843545059 37
0.2 121289479 6
0.2 285254098 3
0.2 444889848 6
0.2 469197123 13
0.2 640007403 24
0.2 718215617 3
0.2 758534043 2
0.2 799706577 2
0.2
2012 Feb 18
2
transforming a data frame to matrix
Hello
> orderulcount
Group.1 Group.2 Group.3 x V5
7 C L 0.0 30 C / L
19 C L 0.2 27 C / L
31 C L 0.4 15 C / L
43 C L 0.6 7 C / L
54 C L 0.8 2 C / L
10 C S 0.0 27 C / S
22 C S 0.2 10 C / S
34 C S 0.4 6 C / S
46 C S 0.6 1 C / S
1 D
2012 Jan 27
3
generate a random number with rexp ?
dear list
I use runif to generate a ramdom number between min and max
runif(n, min=0, max=1)
however , the syntaxe of rexp does not allow that
rexp(n, rate = 1)
and it generate a number with the corresponding rate.
The question is: how to generate a number between min and max using rexp().
Regards
--
PhD candidate in Computer Science
Address
3 avenue lamine, cité ezzahra, Sousse 4000
2011 Oct 21
1
question about aggregate
Hi list
I am discovering R, and
--
PhD candidate in Computer Science
Address
3 avenue lamine, cité ezzahra, Sousse 4000
Tunisia
tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
fax: +216 71 391 166
[[alternative HTML version deleted]]
2013 Feb 04
1
ggplot and colors
Hello,
I have a problem with ggplot and colors
I used this function to draw somes lines and I want them to be all black
(just to test)
however, I dont get any black line in the figure.
Do you have any experience with ggplot and manual colors??
ggplot(cmax, aes(cmax[,3], cmax[,6],colour=interaction(cmax[,1],cmax[,2])))
+ geom_line() + geom_point() +
2010 Jun 05
1
variation
Hi list
I am a new user of R. I ask for some "beginner" question
I am searching if there is any function that computes the variation of some
discrete values of a vector (mean() and sd() exists, but i have not find
variation).
Thanks in advance
Adel
--
PhD candidate in Computer Science
Address
3 avenue lamine, cité ezzahra, Sousse 4000
Tunisia
tel: +216 97 246 706 (+33640302046
2012 Feb 11
1
multiple histograms from a dataframe
Hi list
I need some help for drawing some histograms
I have a dataframe , say,
X Y Z T
I want to draw a histogram Z-T for each value of the couple (X-Y).
When I use thus syntax
> library(lattice)
> histogram(law[,3] ~ law[,66] | law[,1] )
it draws multiple histograms but by selecting distinct values of law[,1]
The deal is to make the same thing but for a couple of columns
Thanks in
2013 Aug 08
1
HG changes affecting received headers
Let me say this is a rather cosmetic issue, but it appears with the latest commits (around 2.2.5 release) the scheme of 'Received' headers has changed for LMTP:
1) Inet socket:
Return-Path: <dfn-adv-bounces at dfn-cert.de>
Delivered-To: <tlx at leuxner.net>
Received: from spectre.leuxner.net ([188.138.0.199])
by spectre.leuxner.net (Dovecot) with LMTP id
2006 Jul 13
1
writeForeignSAS and potential extensions
Dear R-devel,
I've made some potential extensions to writeForeignSAS
in 'foreign' that I wanted to pass along if anyone is
interested. I've attached the diff -u output against
the version found in foreign_0.8-15 and an .R file
with my changes. (In this .R file, the function is named
writeForeignSAS7 to simplify testing/comparisons.)
I've tried to alter the current
2009 Dec 14
1
as.data.frame requires a lot of memory (PR#14140)
Full_Name: Raimar Falke
Version: R version 2.10.0 (2009-10-26)
OS: Linux 2.6.27-16-generic #1 SMP Tue Dec 1 19:26:23 UTC 2009 x86_64 GNU/Linux
Submission from: (NULL) (134.102.222.56)
The construction of a data frame in the way shown below requires
much more memory than expected. If we assume a cell value takes 8 bytes
the total amount of the data is 128mb. However the process takes about
2011 Sep 24
2
two ecdf in the same figure
Hello,
is ot possible to draw two ecdf of vectors (say s1 and s2) on the same
figire with R.
plot function draws a new plot and there is no function like points or lines
to draw a second ecdf on the figure.
Regards
--
*PhD candidate in Computer Science
Address
3 avenue lamine, cité ezzahra, Sousse 4000
Tunisia
tel: +216 97 246 706
fax: +216 71 391 166*
[[alternative HTML version deleted]]
2009 Jan 03
1
Bug report in foreign library (PR#13425)
here appears to be a bug in the foreign library. The following code used to
work, but now generates an error when 'package="SAS"' is specified:
ds <- read.csv("http://www.math.smith.edu/sasr/datasets/help.csv")
# running foreign package version 0.8-30
library(foreign)
# this works fine
write.foreign(ds, "foo", "bar", package="Stata")
#
2013 May 06
1
xyplot legend : simple question
Hello
I am using this command to draw the figure attached to this mail.
xyplot(g[,4]~g[,3],type="b",group=interaction(g[,1],g[,2]), auto.key
=list( title="Evolution de la stabilit?" , points = FALSE, columns=2,
lines = TRUE,space="right") ,data=g,xlab=expression(beta),ylab="stabilit?")
I want to change name of the legend that were attributed
2005 Sep 18
3
as.data.frame segfaults on large lists (PR#8141)
Full_Name: Ulrich Poetter
Version: 2.1.1
OS: i686-pc-linux-gnu FC2
Submission from: (NULL) (134.147.95.187)
as.data.frame() segfaults on lists with very many elements:
> dfn <- rep(list(rep(0,2)),198000)
> test <- as.data.frame.list(dfn)
Process R segmentation fault at Sun Sep 18 17:06:02 2005
2009 Feb 02
3
Problem with foreign package
I tried to use write.foreign() to export to SAS this morning and got an
error.
When I looked at the code for writeForeignSAS() I saw this line:
dfn < -df
which I think should be
dfn <- df
So, I tried to run update.packages() to see if there was an updated
version and got the following result.
> update.packages(c("foreign"))
Warning message:
In list.files(lib) :
2003 Feb 26
5
[Package car/data.ellipse]: confidence intervals off by factor sqrt(2)??? (PR#2584)
Full_Name: Volker Franz
Version: Version 1.6.2 (2003-01-10)
OS: Debian
Submission from: (NULL) (192.124.28.104)
Hi there,
it seems to me that data.ellipse of package "car" (Version 1.0-1)
produces confidence interval's which are too big. To see this, do:
library(car)
plot(c(-2,2),c(-2,2),pch=0)
data.ellipse(rnorm(10000),rnorm(10000),levels=0.68,plot.points=F)
abline(v=+1)