Displaying 20 results from an estimated 7000 matches similar to: "hello World problem"
2006 Apr 13
1
bash-like history mechanism and prompt settings
Hi,
I have a couple of questions:
* would it be possible to add more information on the history, for
example the number of the command and a timestamp. With the number of
command, one could do some stuff like in a terminal to recall a specific
command :
$ !45
and with the timestamp, one could imagine to ask for commands that were
typed in a given interval of time. For example :
R>
2006 Apr 25
10
www.r-project.org
Dear R users and developpers,
My question is adressed to both of you, so I choose R-help to post it.
Are there any plans to jazz up the main R website : http://www.r-project.org
The look it have now is the same for a long time and kind of sad
compared to other statistical package's website. Of course, the
comparison is not fair, since companies are paying web designers to draw
lollipop
2006 Feb 04
1
javascript device for R
Hi,
Has anyone started a javascript device for R.
I don't see something like that googling or at on
http://www.stat.auckland.ac.nz/~paul/R/devices.html
For example, using that graphics library :
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
(I cc that message to the author.)
ps : this is not a feature request, i will do it. But if someone has
started that, let me know.
Romain
--
2006 Apr 26
2
environment
Hi,
Consider the code :
g <- function(){
print(.x)
.x <- 3
}
f <- function(){
environment(g) <- environment()
.x <- 2
g()
.x
}
> f()
[1] 2
[1] 2
I would like f() to return 3. How can I do that ? Am I completely out of
place ?
Doing that, I want to avoid to pass .x as a parameter in f, because in
real life .x is pretty big and g() is called over and over in a
2006 Apr 11
1
pattern in history
Hi,
Sometimes I need to consult the history of commands that are matching a
regex, so I modified the utils::history function for that purpose. I
found it useful.
I append the code ( I only added the two lines with #**)
Romain.
history2 <-
function (pattern="", max.show = 25, reverse = FALSE, unique =
pattern!="", ...)
{
file1 <- tempfile("Rrawhist")
2005 Dec 13
8
superimpose density line over hist
Hi all,
I'm trying to superimpose a rchisq density line over a histogram with
something like:
hist(alnlength)
lines(density(rchisq(length(alnlength), 4)),col="red")
But the rchisq line won't appear anywhere,
Anyone knows what I am missing here?
Thanks in advance,
Albert.
2006 Feb 06
5
lme4: Error in getResponseFormula(form) : "Form" must be a two sided formula
I'm sure I'm being stupid so flame away...
R2.2.1 on Windoze (boohoo) latest updates of packages.
I'm exploring a dataset (land) with three variables looking at an
narrowly unbalanced two group (GROUP) ANCOVA of a randomised
controlled trial analysing endpoint score (SFQ.LOCF.ENDPOINT) entering
the baseline score (SFQ.BASELINE) as covariate and the following work
fine:
> res.same
2006 Feb 08
3
difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice
Hi R users
This looks a simple question
Is there any difference between between rnorm(1000,0,1) and running
rnorm(500,0,1) twice in terms of outcome ?
TM
2005 Dec 16
2
dendrogram branches with different lty
Dear r-list,
I am trying to visually seperate the two main clusters of a dendrogram.
The idea is to use:
'edgePar=list(lty=3)' for 'dend1[[1]]' and
'edgePar=list(lty=1)' for 'dend1[[2]]'
I have not found a way to solve this. Any suggestions?
Patrick
hc <- hclust(dist(USArrests), "ave")
(dend1 <- as.dendrogram(hc))
par(mfrow=c(2,2))
plot(dend1)
2006 Feb 13
2
Plotting contour & filled.contour in one graph
Dear All,
I have a question on overlaying a filled.contour (e.g. on soil properties data) and contour (by elevation) in one graph. Both have the same z matrix dimension. I'm able to overlay both graph, but the plots dimension did not overlap well on the same plots. How can I have both filled.contour and contour on the same graph? The commands that I have written are as follows:
2005 Dec 08
2
Commented version of the home page graphics code
Folks,
I was drawn to R, like many others, partly for the opportunity
to draw nice, colorful graphs (occasionally ones with meaning, too :-)
). I am still quite a newbie to R.
As such, I have been trying to understand the code for the graphics on
the home page (the ones from the 2004 contest -- the dendrogram, the
cluster plot with different coloured circles, etc.) I was wondering
whether anyone
2006 Jan 19
2
R Commenting Style
I seem to remember reading somewhere about some style
guide regarding R the number of comment characters (#)
prior to the comment meaning something.
Anyone know to what I'm referring? Where?
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2006 Apr 26
2
About regression and plot
Dear R-help,
This is my first R day. I want to ask some more beginner's questions.
Q1. How can I obtain the covariance matrix for parameter estimates of a multiple regression? I checked ?lm but didn't get the information.
Q2. How can I see the old graphs in the graph window?
Q3. Can R plot animated graph? For example, I want to see the dynamic change of a 2D graph during a time
2005 Dec 13
2
How to make a plot?
Does anyone have an idea of how to make a chart in R like the
ones here that use a graphic:
http://bigpicture.typepad.com/comments/images/slide1.gif
2006 Apr 28
2
Memoire defaillante
Bonjour,
je travaille actuellement sur le logiciel R et mets en place des procédures d'analyse de données :
sur des procédures de classification employant la commande dist(), je rencontre des problèmes de memoire : avec des data.frame d'environ 100 000 lignes j'obtiens le message d'erreur suivant :
Error : cannot allocate vector of size 668 481 330
Ou une autre erreur souvent
2006 Apr 19
4
creating empty cells with table()
Hello,
Suppose I simulate 20 observations from the Poisson distribution
with lambda = 4. I can summarize these values using table() and
then feed that to barplot() for a graph.
Problem: if there are empty categories (e.g. 0) or empty categories
within the range of the data (e.g. observations for 6, 7, 9), barplot()
does not include the empty cells in the x-axis of the plot. Is there
any way to
2006 Jan 29
2
help with read.table() function
hello, I have just started using R for doing a project
in time series...
unfortunately, I am having trouble using the
read.table function for use in reading my data set.
This is what I'm getting:
I inputted:
data <-
read.table("D:/Oliver/Professional/Studies/Time Series
Analysis/spdc2693.data", header = TRUE)
I got:
Error in file(file, "r") : unable to open connection
2006 Jan 29
2
help with read.table() function
hello, I have just started using R for doing a project
in time series...
unfortunately, I am having trouble using the
read.table function for use in reading my data set.
This is what I'm getting:
I inputted:
data <-
read.table("D:/Oliver/Professional/Studies/Time Series
Analysis/spdc2693.data", header = TRUE)
I got:
Error in file(file, "r") : unable to open connection
2005 Dec 13
4
Ploting graphics using X tints from a color
Hi,
I'm trying to draw a 2D plot using multiple tints of red. The
(simplified) setup is the following: || year | x | y ||
My idea is that each year is plotted with a different tint of red.
Older year (lightest) -> Later year (darkest). I've managed to plot
this with different scales of grays simply by doing:
palette(gray(length(years):0/length(years)))
before the plot and for each
2006 Feb 09
11
Tranferring R results to word prosessors
I have just started looking at R, and are getting more and more irritated
at myself for not having done that before.
However, one of the things I have not found in the documentation is some
way of preparing output from R for convenient formatting into something
like MS Word. An example: If you use summary(lm(....)) you get nice
output. However, if you try to paste that output into the word